#302AB4#302AB4

#302AB4 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.3% C 0.206 H 273.9°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#302AB4
RGBrgb(48, 42, 180)
HSLhsl(243, 62%, 44%)
HSVhsv(243, 77%, 71%)
CMYKcmyk(73.3%, 76.7%, 0%, 29.4%)
CIE-LABlab(28.32, 47.19, -71.11)
CIE-LCHlch(28.32, 85.35, 303.57°)
OKLaboklab(40.25% 0.014 -0.2057)
OKLCHoklch(40.25% 0.206 273.9)
XYZxyz(10.2824, 5.5786, 43.7060)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AB4 #AEB42A
analogous
#2A69B4 #302AB4 #752AB4
triadic
#302AB4 #B4302A #2AB430
tetradic
#302AB4 #B42A69 #AEB42A #2AB475
square
#302AB4 #B42A69 #AEB42A #2AB475
split-complementary
#302AB4 #B4752A #69B42A
monochromatic
#161351 #231E82 #302AB4 #4D47D4 #7D79E0

Accessibility & contrast

On white

9.92
#302AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#302AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AB4
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AB4#FFFFFF#000000##FFFFFF
##302AB41.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302ab4;
/* rgb */ color: rgb(48, 42, 180);
/* oklch */ color: oklch(40.3% 0.206 273.9);
Tailwind
colors: {
  custom: {
    50: '#7e66cc',
    500: '#302ab4',
    950: '#000000',
  },
}
SCSS
$custom: #302ab4;
$custom-light: #7e66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#302ab4",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 242.609,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4025,
    "c": 0.2062,
    "h": 273.9
  },
  "luminance": 0.0558
}

Semantic roles & 50–950 ramp

primary
#302AB4
secondary
#C4C872
accent
#E543DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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