#302A87#302A87

#302A87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.149 H 278.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#302A87
RGBrgb(48, 42, 135)
HSLhsl(244, 53%, 35%)
HSVhsv(244, 69%, 53%)
CMYKcmyk(64.4%, 68.9%, 0%, 47.1%)
CIE-LABlab(23.78, 32.15, -51.14)
CIE-LCHlch(23.78, 60.40, 302.15°)
OKLaboklab(35.65% 0.0221 -0.1474)
OKLCHoklch(35.65% 0.149 278.5)
XYZxyz(6.4187, 4.0331, 23.3572)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A87 #81872A
analogous
#2A5387 #302A87 #5F2A87
triadic
#302A87 #87302A #2A8730
tetradic
#302A87 #872A53 #81872A #2A875F
square
#302A87 #872A53 #81872A #2A875F
split-complementary
#302A87 #875F2A #53872A
monochromatic
#0F0D2A #1F1B58 #302A87 #4139B6 #665ECD

Accessibility & contrast

On white

11.62
#302A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#302A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A87
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A87#FFFFFF#000000##FFFFFF
##302A871.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302a87;
/* rgb */ color: rgb(48, 42, 135);
/* oklch */ color: oklch(35.6% 0.149 278.5);
Tailwind
colors: {
  custom: {
    50: '#7364ab',
    500: '#302a87',
    950: '#000000',
  },
}
SCSS
$custom: #302a87;
$custom-light: #7364ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302a87",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 243.871,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35646,
    "c": 0.14907,
    "h": 278.5
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#302A87
secondary
#ADB35A
accent
#DC4CD3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302A87

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

Preview Lab → · Contrast checker → · Palette generator →

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