#302A8D#302A8D

#302A8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.157 H 277.8°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#302A8D
RGBrgb(48, 42, 141)
HSLhsl(244, 54%, 36%)
HSVhsv(244, 70%, 55%)
CMYKcmyk(66%, 70.2%, 0%, 44.7%)
CIE-LABlab(24.34, 34.21, -53.95)
CIE-LCHlch(24.34, 63.89, 302.38°)
OKLaboklab(36.23% 0.0213 -0.1557)
OKLCHoklch(36.23% 0.157 277.8)
XYZxyz(6.8531, 4.2068, 25.6450)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A8D #878D2A
analogous
#2A558D #302A8D #612A8D
triadic
#302A8D #8D302A #2A8D30
tetradic
#302A8D #8D2A55 #878D2A #2A8D61
square
#302A8D #8D2A55 #878D2A #2A8D61
split-complementary
#302A8D #8D612A #558D2A
monochromatic
#100E2F #201C5E #302A8D #4038BC #6861D0

Accessibility & contrast

On white

11.40
#302A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#302A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A8D
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A8D#FFFFFF#000000##FFFFFF
##302A8D1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302a8d;
/* rgb */ color: rgb(48, 42, 141);
/* oklch */ color: oklch(36.2% 0.157 277.8);
Tailwind
colors: {
  custom: {
    50: '#7564af',
    500: '#302a8d',
    950: '#000000',
  },
}
SCSS
$custom: #302a8d;
$custom-light: #7564af;
$custom-dark: #000000;
JSON
{
  "hex": "#302a8d",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 243.636,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36225,
    "c": 0.15712,
    "h": 277.8
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#302A8D
secondary
#B1B65D
accent
#DD4AD5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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