#302D8F#302D8F

#302D8F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.156 H 276.9°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#302D8F
RGBrgb(48, 45, 143)
HSLhsl(242, 52%, 37%)
HSVhsv(242, 69%, 56%)
CMYKcmyk(66.4%, 68.5%, 0%, 43.9%)
CIE-LABlab(25.22, 33.03, -53.75)
CIE-LCHlch(25.22, 63.09, 301.57°)
OKLaboklab(36.92% 0.0187 -0.1551)
OKLCHoklch(36.92% 0.156 276.9)
XYZxyz(7.1136, 4.4877, 26.4726)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D8F #8C8F2D
analogous
#2D5B8F #302D8F #612D8F
triadic
#302D8F #8F302D #2D8F30
tetradic
#302D8F #8F2D5B #8C8F2D #2D8F61
square
#302D8F #8F2D5B #8C8F2D #2D8F61
split-complementary
#302D8F #8F612D #5B8F2D
monochromatic
#111032 #201E60 #302D8F #403CBE #6A67CF

Accessibility & contrast

On white

11.07
#302D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#302D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D8F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D8F#FFFFFF#000000##FFFFFF
##302D8F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302d8f;
/* rgb */ color: rgb(48, 45, 143);
/* oklch */ color: oklch(36.9% 0.156 276.9);
Tailwind
colors: {
  custom: {
    50: '#7566b1',
    500: '#302d8f',
    950: '#000000',
  },
}
SCSS
$custom: #302d8f;
$custom-light: #7566b1;
$custom-dark: #000000;
JSON
{
  "hex": "#302d8f",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 241.837,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36917,
    "c": 0.1562,
    "h": 276.9
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#302D8F
secondary
#B3B662
accent
#DC4CD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #302D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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