#302A8E#302A8E

#302A8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.158 H 277.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#302A8E
RGBrgb(48, 42, 142)
HSLhsl(244, 54%, 36%)
HSVhsv(244, 70%, 56%)
CMYKcmyk(66.2%, 70.4%, 0%, 44.3%)
CIE-LABlab(24.44, 34.55, -54.42)
CIE-LCHlch(24.44, 64.46, 302.41°)
OKLaboklab(36.32% 0.0211 -0.157)
OKLCHoklch(36.32% 0.158 277.7)
XYZxyz(6.9278, 4.2367, 26.0386)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A8E #888E2A
analogous
#2A568E #302A8E #622A8E
triadic
#302A8E #8E302A #2A8E30
tetradic
#302A8E #8E2A56 #888E2A #2A8E62
square
#302A8E #8E2A56 #888E2A #2A8E62
split-complementary
#302A8E #8E622A #568E2A
monochromatic
#100E30 #201C5F #302A8E #4038BD #6962D1

Accessibility & contrast

On white

11.37
#302A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#302A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A8E
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A8E#FFFFFF#000000##FFFFFF
##302A8E1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302a8e;
/* rgb */ color: rgb(48, 42, 142);
/* oklch */ color: oklch(36.3% 0.158 277.7);
Tailwind
colors: {
  custom: {
    50: '#7564b0',
    500: '#302a8e',
    950: '#000000',
  },
}
SCSS
$custom: #302a8e;
$custom-light: #7564b0;
$custom-dark: #000000;
JSON
{
  "hex": "#302a8e",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 243.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36323,
    "c": 0.15845,
    "h": 277.7
  },
  "luminance": 0.04237
}

Semantic roles & 50–950 ramp

primary
#302A8E
secondary
#B1B65D
accent
#DE4AD5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090511
muted
#7B7A80

Preview Lab

Preview with #302A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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