#302DB9#302DB9

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

Color values

HEX#302DB9
RGBrgb(48, 45, 185)
HSLhsl(241, 61%, 45%)
HSVhsv(241, 76%, 73%)
CMYKcmyk(74.1%, 75.7%, 0%, 27.5%)
CIE-LABlab(29.43, 47.19, -72.26)
CIE-LCHlch(29.43, 86.30, 303.15°)
OKLaboklab(41.19% 0.0116 -0.2091)
OKLCHoklch(41.19% 0.209 273.2)
XYZxyz(10.9113, 6.0068, 46.4739)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DB9 #B6B92D
analogous
#2D70B9 #302DB9 #762DB9
triadic
#302DB9 #B9302D #2DB930
tetradic
#302DB9 #B92D70 #B6B92D #2DB976
square
#302DB9 #B92D70 #B6B92D #2DB976
split-complementary
#302DB9 #B9762D #70B92D
monochromatic
#161557 #232188 #302DB9 #524FD4 #8280E0

Accessibility & contrast

On white

9.54
#302DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#302DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DB9
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DB9#FFFFFF#000000##FFFFFF
##302DB91.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#003EB7
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302db9;
/* rgb */ color: rgb(48, 45, 185);
/* oklch */ color: oklch(41.2% 0.209 273.2);
Tailwind
colors: {
  custom: {
    50: '#7e68cf',
    500: '#302db9',
    950: '#000000',
  },
}
SCSS
$custom: #302db9;
$custom-light: #7e68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302db9",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 241.286,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41188,
    "c": 0.2094,
    "h": 273.2
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#302DB9
secondary
#C7C979
accent
#E444E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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