#302C94#302C94

#302C94 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.164 H 276.6°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#302C94
RGBrgb(48, 44, 148)
HSLhsl(242, 54%, 38%)
HSVhsv(242, 70%, 58%)
CMYKcmyk(67.6%, 70.3%, 0%, 42%)
CIE-LABlab(25.46, 35.38, -56.44)
CIE-LCHlch(25.46, 66.62, 302.08°)
OKLaboklab(37.24% 0.0188 -0.163)
OKLCHoklch(37.24% 0.164 276.6)
XYZxyz(7.4632, 4.5672, 28.4995)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C94 #90942C
analogous
#2C5C94 #302C94 #642C94
triadic
#302C94 #94302C #2C9430
tetradic
#302C94 #942C5C #90942C #2C9464
square
#302C94 #942C5C #90942C #2C9464
split-complementary
#302C94 #94642C #5C942C
monochromatic
#111036 #211E65 #302C94 #3F3AC3 #6C68D2

Accessibility & contrast

On white

10.97
#302C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#302C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C94
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C94#FFFFFF#000000##FFFFFF
##302C941.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003892
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302c94;
/* rgb */ color: rgb(48, 44, 148);
/* oklch */ color: oklch(37.2% 0.164 276.6);
Tailwind
colors: {
  custom: {
    50: '#7666b4',
    500: '#302c94',
    950: '#000000',
  },
}
SCSS
$custom: #302c94;
$custom-light: #7666b4;
$custom-dark: #000000;
JSON
{
  "hex": "#302c94",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 148
  },
  "hsl": {
    "h": 242.308,
    "s": 54.167,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37236,
    "c": 0.16404,
    "h": 276.6
  },
  "luminance": 0.04568
}

Semantic roles & 50–950 ramp

primary
#302C94
secondary
#B5B963
accent
#DE4AD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302C94

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

Preview Lab → · Contrast checker → · Palette generator →

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