#302B84#302B84

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

Color values

HEX#302B84
RGBrgb(48, 43, 132)
HSLhsl(243, 51%, 34%)
HSVhsv(243, 67%, 52%)
CMYKcmyk(63.6%, 67.4%, 0%, 48.2%)
CIE-LABlab(23.74, 30.47, -49.32)
CIE-LCHlch(23.74, 57.97, 301.71°)
OKLaboklab(35.53% 0.0217 -0.1421)
OKLCHoklch(35.53% 0.144 278.7)
XYZxyz(6.2463, 4.0216, 22.2724)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B84 #7F842B
analogous
#2B5384 #302B84 #5D2B84
triadic
#302B84 #84302B #2B8430
tetradic
#302B84 #842B53 #7F842B #2B845D
square
#302B84 #842B53 #7F842B #2B845D
split-complementary
#302B84 #845D2B #53842B
monochromatic
#0E0D28 #1F1C56 #302B84 #413AB2 #655FCB

Accessibility & contrast

On white

11.64
#302B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302B84
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B84#FFFFFF#000000##FFFFFF
##302B841.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C87
Deuteranopia (green-blind)
#003582
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302b84;
/* rgb */ color: rgb(48, 43, 132);
/* oklch */ color: oklch(35.5% 0.144 278.7);
Tailwind
colors: {
  custom: {
    50: '#7365a9',
    500: '#302b84',
    950: '#000000',
  },
}
SCSS
$custom: #302b84;
$custom-light: #7365a9;
$custom-dark: #000000;
JSON
{
  "hex": "#302b84",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 132
  },
  "hsl": {
    "h": 243.371,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35534,
    "c": 0.14373,
    "h": 278.7
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#302B84
secondary
#ACB15A
accent
#DA4DD2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302B84

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

Preview Lab → · Contrast checker → · Palette generator →

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