#302E87#302E87

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

Color values

HEX#302E87
RGBrgb(48, 46, 135)
HSLhsl(241, 49%, 35%)
HSVhsv(241, 66%, 53%)
CMYKcmyk(64.4%, 65.9%, 0%, 47.1%)
CIE-LABlab(24.74, 29.59, -49.57)
CIE-LCHlch(24.74, 57.73, 300.83°)
OKLaboklab(36.34% 0.0187 -0.1428)
OKLCHoklch(36.34% 0.144 277.5)
XYZxyz(6.5677, 4.3311, 23.4069)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E87 #85872E
analogous
#2E5887 #302E87 #5C2E87
triadic
#302E87 #87302E #2E8730
tetradic
#302E87 #872E58 #85872E #2E875C
square
#302E87 #872E58 #85872E #2E875C
split-complementary
#302E87 #875C2E #58872E
monochromatic
#100F2C #201E59 #302E87 #403EB5 #6765CA

Accessibility & contrast

On white

11.25
#302E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#302E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302E87
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E87#FFFFFF#000000##FFFFFF
##302E871.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302e87;
/* rgb */ color: rgb(48, 46, 135);
/* oklch */ color: oklch(36.3% 0.144 277.5);
Tailwind
colors: {
  custom: {
    50: '#7367ab',
    500: '#302e87',
    950: '#000000',
  },
}
SCSS
$custom: #302e87;
$custom-light: #7367ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302e87",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 241.348,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36341,
    "c": 0.14404,
    "h": 277.5
  },
  "luminance": 0.04332
}

Semantic roles & 50–950 ramp

primary
#302E87
secondary
#AFB160
accent
#D94FD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302E87

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

Preview Lab → · Contrast checker → · Palette generator →

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