#302FB9#302FB9

#302FB9 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.207 H 273.0°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#302FB9
RGBrgb(48, 47, 185)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 75%, 73%)
CMYKcmyk(74.1%, 74.6%, 0%, 27.5%)
CIE-LABlab(29.82, 46.08, -71.61)
CIE-LCHlch(29.82, 85.16, 302.76°)
OKLaboklab(41.47% 0.0107 -0.2072)
OKLCHoklch(41.47% 0.208 273)
XYZxyz(10.9895, 6.1631, 46.5000)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FB9 #B8B92F
analogous
#2F73B9 #302FB9 #752FB9
triadic
#302FB9 #B9302F #2FB930
tetradic
#302FB9 #B92F73 #B8B92F #2FB975
square
#302FB9 #B92F73 #B8B92F #2FB975
split-complementary
#302FB9 #B9752F #73B92F
monochromatic
#171657 #232388 #302FB9 #5352D3 #8483DF

Accessibility & contrast

On white

9.41
#302FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#302FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FB9
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FB9#FFFFFF#000000##FFFFFF
##302FB91.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#003FB7
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #302fb9;
/* rgb */ color: rgb(48, 47, 185);
/* oklch */ color: oklch(41.5% 0.207 273.0);
Tailwind
colors: {
  custom: {
    50: '#7e69cf',
    500: '#302fb9',
    950: '#000000',
  },
}
SCSS
$custom: #302fb9;
$custom-light: #7e69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302fb9",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 240.435,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41465,
    "c": 0.2075,
    "h": 273
  },
  "luminance": 0.06164
}

Semantic roles & 50–950 ramp

primary
#302FB9
secondary
#C8C97B
accent
#E345E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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