#302491#302491

#302491 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.169 H 278.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#302491
RGBrgb(48, 36, 145)
HSLhsl(247, 60%, 35%)
HSVhsv(247, 75%, 57%)
CMYKcmyk(66.9%, 75.2%, 0%, 43.1%)
CIE-LABlab(23.45, 39.12, -57.90)
CIE-LCHlch(23.45, 69.88, 304.05°)
OKLaboklab(35.71% 0.0248 -0.1672)
OKLCHoklch(35.71% 0.169 278.4)
XYZxyz(6.9590, 3.9339, 27.1752)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302491 #859124
analogous
#244E91 #302491 #672491
triadic
#302491 #913024 #249130
tetradic
#302491 #91244E #859124 #249167
square
#302491 #91244E #859124 #249167
split-complementary
#302491 #916724 #4E9124
monochromatic
#100C2F #201860 #302491 #4030C2 #6759D6

Accessibility & contrast

On white

11.75
#302491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#302491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302491
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302491#FFFFFF#000000##FFFFFF
##3024911.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302491;
/* rgb */ color: rgb(48, 36, 145);
/* oklch */ color: oklch(35.7% 0.169 278.4);
Tailwind
colors: {
  custom: {
    50: '#7661b2',
    500: '#302491',
    950: '#000000',
  },
}
SCSS
$custom: #302491;
$custom-light: #7661b2;
$custom-dark: #000000;
JSON
{
  "hex": "#302491",
  "rgb": {
    "r": 48,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 246.606,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35708,
    "c": 0.16902,
    "h": 278.4
  },
  "luminance": 0.03934
}

Semantic roles & 50–950 ramp

primary
#302491
secondary
#AFBA56
accent
#E344D2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302491

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

Preview Lab → · Contrast checker → · Palette generator →

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