#302A86#302A86

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

Color values

HEX#302A86
RGBrgb(48, 42, 134)
HSLhsl(244, 52%, 35%)
HSVhsv(244, 69%, 53%)
CMYKcmyk(64.2%, 68.7%, 0%, 47.5%)
CIE-LABlab(23.69, 31.80, -50.66)
CIE-LCHlch(23.69, 59.82, 302.12°)
OKLaboklab(35.55% 0.0223 -0.146)
OKLCHoklch(35.55% 0.148 278.7)
XYZxyz(6.3486, 4.0050, 22.9881)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A86 #80862A
analogous
#2A5286 #302A86 #5E2A86
triadic
#302A86 #86302A #2A8630
tetradic
#302A86 #862A52 #80862A #2A865E
square
#302A86 #862A52 #80862A #2A865E
split-complementary
#302A86 #865E2A #52862A
monochromatic
#0F0D29 #1F1B57 #302A86 #4139B5 #655ECD

Accessibility & contrast

On white

11.66
#302A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#302A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A86
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A86#FFFFFF#000000##FFFFFF
##302A861.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003584
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302a86;
/* rgb */ color: rgb(48, 42, 134);
/* oklch */ color: oklch(35.6% 0.148 278.7);
Tailwind
colors: {
  custom: {
    50: '#7364aa',
    500: '#302a86',
    950: '#000000',
  },
}
SCSS
$custom: #302a86;
$custom-light: #7364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#302a86",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 243.913,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35551,
    "c": 0.14772,
    "h": 278.7
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#302A86
secondary
#ACB25A
accent
#DC4CD2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302A86

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

Preview Lab → · Contrast checker → · Palette generator →

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