#302DB8#302DB8

#302DB8 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.208 H 273.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#302DB8
RGBrgb(48, 45, 184)
HSLhsl(241, 61%, 45%)
HSVhsv(241, 76%, 72%)
CMYKcmyk(73.9%, 75.5%, 0%, 27.8%)
CIE-LABlab(29.32, 46.86, -71.84)
CIE-LCHlch(29.32, 85.77, 303.12°)
OKLaboklab(41.08% 0.0118 -0.2079)
OKLCHoklch(41.08% 0.208 273.3)
XYZxyz(10.8061, 5.9647, 45.9199)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DB8 #B5B82D
analogous
#2D6FB8 #302DB8 #762DB8
triadic
#302DB8 #B8302D #2DB830
tetradic
#302DB8 #B82D6F #B5B82D #2DB876
square
#302DB8 #B82D6F #B5B82D #2DB876
split-complementary
#302DB8 #B8762D #6FB82D
monochromatic
#161556 #232187 #302DB8 #514ED4 #8280E0

Accessibility & contrast

On white

9.58
#302DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#302DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DB8
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DB8#FFFFFF#000000##FFFFFF
##302DB81.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302db8;
/* rgb */ color: rgb(48, 45, 184);
/* oklch */ color: oklch(41.1% 0.208 273.3);
Tailwind
colors: {
  custom: {
    50: '#7e68cf',
    500: '#302db8',
    950: '#000000',
  },
}
SCSS
$custom: #302db8;
$custom-light: #7e68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302db8",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 241.295,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41082,
    "c": 0.20821,
    "h": 273.3
  },
  "luminance": 0.05966
}

Semantic roles & 50–950 ramp

primary
#302DB8
secondary
#C7C978
accent
#E444E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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