#302C99#302C99

#302C99 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.171 H 276.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#302C99
RGBrgb(48, 44, 153)
HSLhsl(242, 55%, 39%)
HSVhsv(242, 71%, 60%)
CMYKcmyk(68.6%, 71.2%, 0%, 40%)
CIE-LABlab(25.95, 37.10, -58.72)
CIE-LCHlch(25.95, 69.46, 302.28°)
OKLaboklab(37.73% 0.018 -0.1696)
OKLCHoklch(37.73% 0.171 276)
XYZxyz(7.8675, 4.7289, 30.6290)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C99 #95992C
analogous
#2C5E99 #302C99 #662C99
triadic
#302C99 #99302C #2C9930
tetradic
#302C99 #992C5E #95992C #2C9966
square
#302C99 #992C5E #95992C #2C9966
split-complementary
#302C99 #99662C #5E992C
monochromatic
#12113A #211E69 #302C99 #413BC7 #6F6BD4

Accessibility & contrast

On white

10.79
#302C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#302C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C99
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C99#FFFFFF#000000##FFFFFF
##302C991.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003997
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #302c99;
/* rgb */ color: rgb(48, 44, 153);
/* oklch */ color: oklch(37.7% 0.171 276.0);
Tailwind
colors: {
  custom: {
    50: '#7766b8',
    500: '#302c99',
    950: '#000000',
  },
}
SCSS
$custom: #302c99;
$custom-light: #7766b8;
$custom-dark: #000000;
JSON
{
  "hex": "#302c99",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 242.202,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3773,
    "c": 0.17057,
    "h": 276
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#302C99
secondary
#B8BB66
accent
#DF49D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302C99

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

Preview Lab → · Contrast checker → · Palette generator →

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