#302C71#302C71

#302C71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.0% C 0.115 H 280.9°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#302C71
RGBrgb(48, 44, 113)
HSLhsl(243, 44%, 31%)
HSVhsv(243, 61%, 44%)
CMYKcmyk(57.5%, 61.1%, 0%, 55.7%)
CIE-LABlab(22.38, 23.15, -39.48)
CIE-LCHlch(22.38, 45.77, 300.39°)
OKLaboklab(34.03% 0.0219 -0.1132)
OKLCHoklch(34.03% 0.115 280.9)
XYZxyz(5.0993, 3.6217, 16.0499)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C71 #6D712C
analogous
#2C4A71 #302C71 #522C71
triadic
#302C71 #71302C #2C7130
tetradic
#302C71 #712C4A #6D712C #2C7152
square
#302C71 #712C4A #6D712C #2C7152
split-complementary
#302C71 #71522C #4A712C
monochromatic
#0B0A19 #1D1B45 #302C71 #433D9D #5F59BE

Accessibility & contrast

On white

12.18
#302C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#302C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C71
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C71#FFFFFF#000000##FFFFFF
##302C711.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#113C4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #302c71;
/* rgb */ color: rgb(48, 44, 113);
/* oklch */ color: oklch(34.0% 0.115 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f659a',
    500: '#302c71',
    950: '#000000',
  },
}
SCSS
$custom: #302c71;
$custom-light: #6f659a;
$custom-dark: #000000;
JSON
{
  "hex": "#302c71",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 243.478,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3403,
    "c": 0.11527,
    "h": 280.9
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#302C71
secondary
#9EA356
accent
#D454CC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #302C71

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

Preview Lab → · Contrast checker → · Palette generator →

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