#302F97#302F97

#302F97 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.164 H 275.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#302F97
RGBrgb(48, 47, 151)
HSLhsl(241, 53%, 39%)
HSVhsv(241, 69%, 59%)
CMYKcmyk(68.2%, 68.9%, 0%, 40.8%)
CIE-LABlab(26.43, 34.56, -56.70)
CIE-LCHlch(26.43, 66.40, 301.36°)
OKLaboklab(38.02% 0.0161 -0.1637)
OKLCHoklch(38.02% 0.164 275.6)
XYZxyz(7.8195, 4.8951, 29.8049)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F97 #96972F
analogous
#2F6297 #302F97 #642F97
triadic
#302F97 #97302F #2F9730
tetradic
#302F97 #972F62 #96972F #2F9764
square
#302F97 #972F62 #96972F #2F9764
split-complementary
#302F97 #97642F #62972F
monochromatic
#12123A #212068 #302F97 #4140C3 #6F6ED2

Accessibility & contrast

On white

10.61
#302F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#302F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F97
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F97#FFFFFF#000000##FFFFFF
##302F971.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302f97;
/* rgb */ color: rgb(48, 47, 151);
/* oklch */ color: oklch(38.0% 0.164 275.6);
Tailwind
colors: {
  custom: {
    50: '#7668b7',
    500: '#302f97',
    950: '#000000',
  },
}
SCSS
$custom: #302f97;
$custom-light: #7668b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302f97",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 240.577,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38022,
    "c": 0.16449,
    "h": 275.6
  },
  "luminance": 0.04896
}

Semantic roles & 50–950 ramp

primary
#302F97
secondary
#B9B968
accent
#DC4CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302F97

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

Preview Lab → · Contrast checker → · Palette generator →

#302F97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva