#302C8E#302C8E

#302C8E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.156 H 277.2°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#302C8E
RGBrgb(48, 44, 142)
HSLhsl(242, 53%, 36%)
HSVhsv(242, 69%, 56%)
CMYKcmyk(66.2%, 69%, 0%, 44.3%)
CIE-LABlab(24.90, 33.31, -53.67)
CIE-LCHlch(24.90, 63.16, 301.83°)
OKLaboklab(36.65% 0.0196 -0.1548)
OKLCHoklch(36.65% 0.156 277.2)
XYZxyz(7.0005, 4.3822, 26.0629)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C8E #8A8E2C
analogous
#2C598E #302C8E #612C8E
triadic
#302C8E #8E302C #2C8E30
tetradic
#302C8E #8E2C59 #8A8E2C #2C8E61
square
#302C8E #8E2C59 #8A8E2C #2C8E61
split-complementary
#302C8E #8E612C #598E2C
monochromatic
#100F31 #201E5F #302C8E #403ABD #6965CF

Accessibility & contrast

On white

11.19
#302C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#302C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C8E
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C8E#FFFFFF#000000##FFFFFF
##302C8E1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302c8e;
/* rgb */ color: rgb(48, 44, 142);
/* oklch */ color: oklch(36.7% 0.156 277.2);
Tailwind
colors: {
  custom: {
    50: '#7566b0',
    500: '#302c8e',
    950: '#000000',
  },
}
SCSS
$custom: #302c8e;
$custom-light: #7566b0;
$custom-dark: #000000;
JSON
{
  "hex": "#302c8e",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 242.449,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36653,
    "c": 0.15606,
    "h": 277.2
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#302C8E
secondary
#B2B660
accent
#DC4CD6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #302C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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