#302D88#302D88

#302D88 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.147 H 277.6°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#302D88
RGBrgb(48, 45, 136)
HSLhsl(242, 50%, 35%)
HSVhsv(242, 67%, 53%)
CMYKcmyk(64.7%, 66.9%, 0%, 46.7%)
CIE-LABlab(24.58, 30.58, -50.45)
CIE-LCHlch(24.58, 58.99, 301.22°)
OKLaboklab(36.26% 0.0195 -0.1454)
OKLCHoklch(36.26% 0.147 277.6)
XYZxyz(6.5998, 4.2822, 23.7665)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D88 #85882D
analogous
#2D5788 #302D88 #5D2D88
triadic
#302D88 #88302D #2D8830
tetradic
#302D88 #882D57 #85882D #2D885D
square
#302D88 #882D57 #85882D #2D885D
split-complementary
#302D88 #885D2D #57882D
monochromatic
#100F2C #201E5A #302D88 #403CB6 #6764CC

Accessibility & contrast

On white

11.31
#302D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#302D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D88
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D88#FFFFFF#000000##FFFFFF
##302D881.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302d88;
/* rgb */ color: rgb(48, 45, 136);
/* oklch */ color: oklch(36.3% 0.147 277.6);
Tailwind
colors: {
  custom: {
    50: '#7366ac',
    500: '#302d88',
    950: '#000000',
  },
}
SCSS
$custom: #302d88;
$custom-light: #7366ac;
$custom-dark: #000000;
JSON
{
  "hex": "#302d88",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 241.978,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36256,
    "c": 0.1467,
    "h": 277.6
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302D88

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

Preview Lab → · Contrast checker → · Palette generator →

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