#302EA1#302EA1

#302EA1 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.179 H 274.9°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#302EA1
RGBrgb(48, 46, 161)
HSLhsl(241, 56%, 41%)
HSVhsv(241, 71%, 63%)
CMYKcmyk(70.2%, 71.4%, 0%, 36.9%)
CIE-LABlab(27.17, 38.62, -61.59)
CIE-LCHlch(27.17, 72.69, 302.09°)
OKLaboklab(38.85% 0.0154 -0.178)
OKLCHoklch(38.85% 0.179 274.9)
XYZxyz(8.6268, 5.1548, 34.2516)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EA1 #9FA12E
analogous
#2E66A1 #302EA1 #692EA1
triadic
#302EA1 #A1302E #2EA130
tetradic
#302EA1 #A12E66 #9FA12E #2EA169
square
#302EA1 #A12E66 #9FA12E #2EA169
split-complementary
#302EA1 #A1692E #66A12E
monochromatic
#141342 #222071 #302EA1 #4543C9 #7473D7

Accessibility & contrast

On white

10.34
#302EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#302EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EA1
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EA1#FFFFFF#000000##FFFFFF
##302EA11.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302ea1;
/* rgb */ color: rgb(48, 46, 161);
/* oklch */ color: oklch(38.8% 0.179 274.9);
Tailwind
colors: {
  custom: {
    50: '#7968be',
    500: '#302ea1',
    950: '#000000',
  },
}
SCSS
$custom: #302ea1;
$custom-light: #7968be;
$custom-dark: #000000;
JSON
{
  "hex": "#302ea1",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 241.043,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.17865,
    "h": 274.9
  },
  "luminance": 0.05156
}

Semantic roles & 50–950 ramp

primary
#302EA1
secondary
#BDBE6C
accent
#DF49DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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