#302D87#302D87

#302D87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.145 H 277.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#302D87
RGBrgb(48, 45, 135)
HSLhsl(242, 50%, 35%)
HSVhsv(242, 67%, 53%)
CMYKcmyk(64.4%, 66.7%, 0%, 47.1%)
CIE-LABlab(24.49, 30.23, -49.97)
CIE-LCHlch(24.49, 58.40, 301.17°)
OKLaboklab(36.16% 0.0196 -0.144)
OKLCHoklch(36.16% 0.145 277.7)
XYZxyz(6.5291, 4.2539, 23.3940)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D87 #84872D
analogous
#2D5787 #302D87 #5D2D87
triadic
#302D87 #87302D #2D8730
tetradic
#302D87 #872D57 #84872D #2D875D
square
#302D87 #872D57 #84872D #2D875D
split-complementary
#302D87 #875D2D #57872D
monochromatic
#0F0E2B #201E59 #302D87 #403CB5 #6763CB

Accessibility & contrast

On white

11.35
#302D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#302D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D87
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D87#FFFFFF#000000##FFFFFF
##302D871.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302d87;
/* rgb */ color: rgb(48, 45, 135);
/* oklch */ color: oklch(36.2% 0.145 277.7);
Tailwind
colors: {
  custom: {
    50: '#7366ab',
    500: '#302d87',
    950: '#000000',
  },
}
SCSS
$custom: #302d87;
$custom-light: #7366ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302d87",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 242,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36163,
    "c": 0.14531,
    "h": 277.7
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#302D87
secondary
#AFB25E
accent
#DA4ED5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302D87

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

Preview Lab → · Contrast checker → · Palette generator →

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