#302EB8#302EB8

#302EB8 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.2% C 0.207 H 273.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#302EB8
RGBrgb(48, 46, 184)
HSLhsl(241, 60%, 45%)
HSVhsv(241, 75%, 72%)
CMYKcmyk(73.9%, 75%, 0%, 27.8%)
CIE-LABlab(29.52, 46.31, -71.52)
CIE-LCHlch(29.52, 85.20, 302.93°)
OKLaboklab(41.22% 0.0114 -0.2069)
OKLCHoklch(41.22% 0.207 273.1)
XYZxyz(10.8448, 6.0419, 45.9328)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EB8 #B6B82E
analogous
#2E71B8 #302EB8 #752EB8
triadic
#302EB8 #B8302E #2EB830
tetradic
#302EB8 #B82E71 #B6B82E #2EB875
square
#302EB8 #B82E71 #B6B82E #2EB875
split-complementary
#302EB8 #B8752E #71B82E
monochromatic
#161656 #232287 #302EB8 #5250D3 #8281DF

Accessibility & contrast

On white

9.51
#302EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#302EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EB8
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EB8#FFFFFF#000000##FFFFFF
##302EB81.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBC
Deuteranopia (green-blind)
#003FB6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #302eb8;
/* rgb */ color: rgb(48, 46, 184);
/* oklch */ color: oklch(41.2% 0.207 273.1);
Tailwind
colors: {
  custom: {
    50: '#7e69cf',
    500: '#302eb8',
    950: '#000000',
  },
}
SCSS
$custom: #302eb8;
$custom-light: #7e69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302eb8",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 240.87,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4122,
    "c": 0.20725,
    "h": 273.1
  },
  "luminance": 0.06043
}

Semantic roles & 50–950 ramp

primary
#302EB8
secondary
#C7C879
accent
#E345E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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