#302DB6#302DB6

#302DB6 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.9% C 0.206 H 273.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#302DB6
RGBrgb(48, 45, 182)
HSLhsl(241, 60%, 45%)
HSVhsv(241, 75%, 71%)
CMYKcmyk(73.6%, 75.3%, 0%, 28.6%)
CIE-LABlab(29.11, 46.21, -71.00)
CIE-LCHlch(29.11, 84.72, 303.06°)
OKLaboklab(40.87% 0.0122 -0.2054)
OKLCHoklch(40.87% 0.206 273.4)
XYZxyz(10.5980, 5.8815, 44.8236)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DB6 #B3B62D
analogous
#2D6FB6 #302DB6 #752DB6
triadic
#302DB6 #B6302D #2DB630
tetradic
#302DB6 #B62D6F #B3B62D #2DB675
square
#302DB6 #B62D6F #B3B62D #2DB675
split-complementary
#302DB6 #B6752D #6FB62D
monochromatic
#161554 #232185 #302DB6 #504DD3 #807EDF

Accessibility & contrast

On white

9.65
#302DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#302DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DB6
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DB6#FFFFFF#000000##FFFFFF
##302DB61.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBA
Deuteranopia (green-blind)
#003EB4
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302db6;
/* rgb */ color: rgb(48, 45, 182);
/* oklch */ color: oklch(40.9% 0.206 273.4);
Tailwind
colors: {
  custom: {
    50: '#7e68cd',
    500: '#302db6',
    950: '#000000',
  },
}
SCSS
$custom: #302db6;
$custom-light: #7e68cd;
$custom-dark: #000000;
JSON
{
  "hex": "#302db6",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 241.314,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40869,
    "c": 0.20579,
    "h": 273.4
  },
  "luminance": 0.05883
}

Semantic roles & 50–950 ramp

primary
#302DB6
secondary
#C6C877
accent
#E344E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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