#302496#302496

#302496 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.175 H 277.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#302496
RGBrgb(48, 36, 150)
HSLhsl(246, 61%, 36%)
HSVhsv(246, 76%, 59%)
CMYKcmyk(68%, 76%, 0%, 41.2%)
CIE-LABlab(23.97, 40.76, -60.13)
CIE-LCHlch(23.97, 72.64, 304.13°)
OKLaboklab(36.23% 0.0237 -0.1737)
OKLCHoklch(36.23% 0.175 277.8)
XYZxyz(7.3530, 4.0915, 29.2505)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302496 #8A9624
analogous
#245196 #302496 #692496
triadic
#302496 #963024 #249630
tetradic
#302496 #962451 #8A9624 #249669
square
#302496 #962451 #8A9624 #249669
split-complementary
#302496 #966924 #519624
monochromatic
#100C33 #201865 #302496 #4030C7 #695CD8

Accessibility & contrast

On white

11.55
#302496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#302496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302496
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302496#FFFFFF#000000##FFFFFF
##3024961.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302496;
/* rgb */ color: rgb(48, 36, 150);
/* oklch */ color: oklch(36.2% 0.175 277.8);
Tailwind
colors: {
  custom: {
    50: '#7761b6',
    500: '#302496',
    950: '#000000',
  },
}
SCSS
$custom: #302496;
$custom-light: #7761b6;
$custom-dark: #000000;
JSON
{
  "hex": "#302496",
  "rgb": {
    "r": 48,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 246.316,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36232,
    "c": 0.17531,
    "h": 277.8
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#302496
secondary
#B2BD59
accent
#E443D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302496

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#302496 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva