#302E99#302E99

#302E99 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.168 H 275.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#302E99
RGBrgb(48, 46, 153)
HSLhsl(241, 54%, 39%)
HSVhsv(241, 70%, 60%)
CMYKcmyk(68.6%, 69.9%, 0%, 40%)
CIE-LABlab(26.39, 35.87, -57.99)
CIE-LCHlch(26.39, 68.19, 301.74°)
OKLaboklab(38.05% 0.0166 -0.1675)
OKLCHoklch(38.05% 0.168 275.7)
XYZxyz(7.9438, 4.8816, 30.6544)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E99 #97992E
analogous
#2E6299 #302E99 #662E99
triadic
#302E99 #99302E #2E9930
tetradic
#302E99 #992E62 #97992E #2E9966
square
#302E99 #992E62 #97992E #2E9966
split-complementary
#302E99 #99662E #62992E
monochromatic
#12123B #21206A #302E99 #413FC5 #706ED3

Accessibility & contrast

On white

10.63
#302E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#302E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E99
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E99#FFFFFF#000000##FFFFFF
##302E991.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #302e99;
/* rgb */ color: rgb(48, 46, 153);
/* oklch */ color: oklch(38.1% 0.168 275.7);
Tailwind
colors: {
  custom: {
    50: '#7767b8',
    500: '#302e99',
    950: '#000000',
  },
}
SCSS
$custom: #302e99;
$custom-light: #7767b8;
$custom-dark: #000000;
JSON
{
  "hex": "#302e99",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 241.121,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38051,
    "c": 0.16829,
    "h": 275.7
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#302E99
secondary
#B9BB68
accent
#DD4BDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302E99

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

Preview Lab → · Contrast checker → · Palette generator →

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