#302A99#302A99

#302A99 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.173 H 276.4°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#302A99
RGBrgb(48, 42, 153)
HSLhsl(243, 57%, 38%)
HSVhsv(243, 73%, 60%)
CMYKcmyk(68.6%, 72.5%, 0%, 40%)
CIE-LABlab(25.51, 38.29, -59.44)
CIE-LCHlch(25.51, 70.70, 302.79°)
OKLaboklab(37.42% 0.0193 -0.1717)
OKLCHoklch(37.42% 0.173 276.4)
XYZxyz(7.7948, 4.5835, 30.6047)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A99 #93992A
analogous
#2A5B99 #302A99 #672A99
triadic
#302A99 #99302A #2A9930
tetradic
#302A99 #992A5B #93992A #2A9967
square
#302A99 #992A5B #93992A #2A9967
split-complementary
#302A99 #99672A #5B992A
monochromatic
#121039 #211D69 #302A99 #4038C8 #6E68D6

Accessibility & contrast

On white

10.96
#302A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#302A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A99
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A99#FFFFFF#000000##FFFFFF
##302A991.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302a99;
/* rgb */ color: rgb(48, 42, 153);
/* oklch */ color: oklch(37.4% 0.173 276.4);
Tailwind
colors: {
  custom: {
    50: '#7765b8',
    500: '#302a99',
    950: '#000000',
  },
}
SCSS
$custom: #302a99;
$custom-light: #7765b8;
$custom-dark: #000000;
JSON
{
  "hex": "#302a99",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 243.243,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37419,
    "c": 0.17278,
    "h": 276.4
  },
  "luminance": 0.04584
}

Semantic roles & 50–950 ramp

primary
#302A99
secondary
#B7BC63
accent
#E048D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302A99

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

Preview Lab → · Contrast checker → · Palette generator →

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