#302F87#302F87

#302F87 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.143 H 277.2°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#302F87
RGBrgb(48, 47, 135)
HSLhsl(241, 48%, 36%)
HSVhsv(241, 65%, 53%)
CMYKcmyk(64.4%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.98, 28.93, -49.17)
CIE-LCHlch(24.98, 57.05, 300.47°)
OKLaboklab(36.52% 0.0178 -0.1416)
OKLCHoklch(36.52% 0.143 277.2)
XYZxyz(6.6072, 4.4102, 23.4200)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F87 #86872F
analogous
#2F5A87 #302F87 #5C2F87
triadic
#302F87 #87302F #2F8730
tetradic
#302F87 #872F5A #86872F #2F875C
square
#302F87 #872F5A #86872F #2F875C
split-complementary
#302F87 #875C2F #5A872F
monochromatic
#100F2C #201F5A #302F87 #403FB4 #6866CA

Accessibility & contrast

On white

11.16
#302F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#302F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F87
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F87#FFFFFF#000000##FFFFFF
##302F871.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302f87;
/* rgb */ color: rgb(48, 47, 135);
/* oklch */ color: oklch(36.5% 0.143 277.2);
Tailwind
colors: {
  custom: {
    50: '#7368ab',
    500: '#302f87',
    950: '#000000',
  },
}
SCSS
$custom: #302f87;
$custom-light: #7368ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302f87",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 240.682,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36521,
    "c": 0.14275,
    "h": 277.2
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#302F87
secondary
#B0B161
accent
#D850D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302F87

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

Preview Lab → · Contrast checker → · Palette generator →

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