#302D8E#302D8E

#302D8E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.155 H 277.0°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#302D8E
RGBrgb(48, 45, 142)
HSLhsl(242, 52%, 37%)
HSVhsv(242, 68%, 56%)
CMYKcmyk(66.2%, 68.3%, 0%, 44.3%)
CIE-LABlab(25.13, 32.68, -53.29)
CIE-LCHlch(25.13, 62.51, 301.52°)
OKLaboklab(36.82% 0.0188 -0.1537)
OKLCHoklch(36.82% 0.155 277)
XYZxyz(7.0382, 4.4576, 26.0754)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D8E #8B8E2D
analogous
#2D5B8E #302D8E #612D8E
triadic
#302D8E #8E302D #2D8E30
tetradic
#302D8E #8E2D5B #8B8E2D #2D8E61
square
#302D8E #8E2D5B #8B8E2D #2D8E61
split-complementary
#302D8E #8E612D #5B8E2D
monochromatic
#111031 #201E60 #302D8E #403CBC #6A67CF

Accessibility & contrast

On white

11.10
#302D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#302D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D8E
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D8E#FFFFFF#000000##FFFFFF
##302D8E1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302d8e;
/* rgb */ color: rgb(48, 45, 142);
/* oklch */ color: oklch(36.8% 0.155 277.0);
Tailwind
colors: {
  custom: {
    50: '#7566b0',
    500: '#302d8e',
    950: '#000000',
  },
}
SCSS
$custom: #302d8e;
$custom-light: #7566b0;
$custom-dark: #000000;
JSON
{
  "hex": "#302d8e",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 241.856,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36821,
    "c": 0.15486,
    "h": 277
  },
  "luminance": 0.04458
}

Semantic roles & 50–950 ramp

primary
#302D8E
secondary
#B3B561
accent
#DB4CD7
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #302D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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