#302E71#302E71

#302E71 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.112 H 280.0°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#302E71
RGBrgb(48, 46, 113)
HSLhsl(242, 42%, 31%)
HSVhsv(242, 59%, 44%)
CMYKcmyk(57.5%, 59.3%, 0%, 55.7%)
CIE-LABlab(22.91, 21.80, -38.62)
CIE-LCHlch(22.91, 44.34, 299.44°)
OKLaboklab(34.42% 0.0196 -0.1106)
OKLCHoklch(34.42% 0.112 280)
XYZxyz(5.1756, 3.7743, 16.0754)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E71 #6F712E
analogous
#2E4D71 #302E71 #512E71
triadic
#302E71 #71302E #2E7130
tetradic
#302E71 #712E4D #6F712E #2E7151
square
#302E71 #712E4D #6F712E #2E7151
split-complementary
#302E71 #71512E #4D712E
monochromatic
#0B0B1A #1E1C46 #302E71 #42409C #5F5DBD

Accessibility & contrast

On white

11.97
#302E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#302E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E71
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E71#FFFFFF#000000##FFFFFF
##302E711.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#113E4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302e71;
/* rgb */ color: rgb(48, 46, 113);
/* oklch */ color: oklch(34.4% 0.112 280.0);
Tailwind
colors: {
  custom: {
    50: '#6f669a',
    500: '#302e71',
    950: '#000000',
  },
}
SCSS
$custom: #302e71;
$custom-light: #6f669a;
$custom-dark: #000000;
JSON
{
  "hex": "#302e71",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 241.791,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34424,
    "c": 0.11234,
    "h": 280
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

primary
#302E71
secondary
#A0A258
accent
#D256CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #302E71

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

Preview Lab → · Contrast checker → · Palette generator →

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