#302EB4#302EB4

#302EB4 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.8% C 0.202 H 273.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#302EB4
RGBrgb(48, 46, 180)
HSLhsl(241, 59%, 44%)
HSVhsv(241, 74%, 71%)
CMYKcmyk(73.3%, 74.4%, 0%, 29.4%)
CIE-LABlab(29.10, 45.00, -69.83)
CIE-LCHlch(29.10, 83.07, 302.80°)
OKLaboklab(40.8% 0.0121 -0.202)
OKLCHoklch(40.8% 0.202 273.4)
XYZxyz(10.4314, 5.8766, 43.7557)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EB4 #B2B42E
analogous
#2E6FB4 #302EB4 #732EB4
triadic
#302EB4 #B4302E #2EB430
tetradic
#302EB4 #B42E6F #B2B42E #2EB473
square
#302EB4 #B42E6F #B2B42E #2EB473
split-complementary
#302EB4 #B4732E #6FB42E
monochromatic
#161553 #232283 #302EB4 #504ED2 #807EDE

Accessibility & contrast

On white

9.65
#302EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#302EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EB4
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EB4#FFFFFF#000000##FFFFFF
##302EB41.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#003EB2
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302eb4;
/* rgb */ color: rgb(48, 46, 180);
/* oklch */ color: oklch(40.8% 0.202 273.4);
Tailwind
colors: {
  custom: {
    50: '#7d69cc',
    500: '#302eb4',
    950: '#000000',
  },
}
SCSS
$custom: #302eb4;
$custom-light: #7d69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#302eb4",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 240.896,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40798,
    "c": 0.20239,
    "h": 273.4
  },
  "luminance": 0.05878
}

Semantic roles & 50–950 ramp

primary
#302EB4
secondary
#C6C777
accent
#E245E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #302EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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