#302A88#302A88

#302A88 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.150 H 278.4°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#302A88
RGBrgb(48, 42, 136)
HSLhsl(244, 53%, 35%)
HSVhsv(244, 69%, 53%)
CMYKcmyk(64.7%, 69.1%, 0%, 46.7%)
CIE-LABlab(23.87, 32.49, -51.61)
CIE-LCHlch(23.87, 60.99, 302.19°)
OKLaboklab(35.74% 0.022 -0.1488)
OKLCHoklch(35.74% 0.15 278.4)
XYZxyz(6.4894, 4.0614, 23.7297)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A88 #82882A
analogous
#2A5388 #302A88 #5F2A88
triadic
#302A88 #88302A #2A8830
tetradic
#302A88 #882A53 #82882A #2A885F
square
#302A88 #882A53 #82882A #2A885F
split-complementary
#302A88 #885F2A #53882A
monochromatic
#0F0D2A #1F1C59 #302A88 #4138B7 #665FCE

Accessibility & contrast

On white

11.59
#302A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302A88
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A88#FFFFFF#000000##FFFFFF
##302A881.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302a88;
/* rgb */ color: rgb(48, 42, 136);
/* oklch */ color: oklch(35.7% 0.150 278.4);
Tailwind
colors: {
  custom: {
    50: '#7464ac',
    500: '#302a88',
    950: '#000000',
  },
}
SCSS
$custom: #302a88;
$custom-light: #7464ac;
$custom-dark: #000000;
JSON
{
  "hex": "#302a88",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 243.83,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35742,
    "c": 0.15043,
    "h": 278.4
  },
  "luminance": 0.04062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302A88

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

Preview Lab → · Contrast checker → · Palette generator →

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