#302B8E#302B8E

#302B8E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.157 H 277.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#302B8E
RGBrgb(48, 43, 142)
HSLhsl(243, 54%, 36%)
HSVhsv(243, 70%, 56%)
CMYKcmyk(66.2%, 69.7%, 0%, 44.3%)
CIE-LABlab(24.67, 33.94, -54.05)
CIE-LCHlch(24.67, 63.82, 302.12°)
OKLaboklab(36.49% 0.0204 -0.1559)
OKLCHoklch(36.49% 0.157 277.4)
XYZxyz(6.9637, 4.3085, 26.0506)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B8E #898E2B
analogous
#2B588E #302B8E #622B8E
triadic
#302B8E #8E302B #2B8E30
tetradic
#302B8E #8E2B58 #898E2B #2B8E62
square
#302B8E #8E2B58 #898E2B #2B8E62
split-complementary
#302B8E #8E622B #588E2B
monochromatic
#100F30 #201D5F #302B8E #4039BD #6963D0

Accessibility & contrast

On white

11.28
#302B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#302B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302B8E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B8E#FFFFFF#000000##FFFFFF
##302B8E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302b8e;
/* rgb */ color: rgb(48, 43, 142);
/* oklch */ color: oklch(36.5% 0.157 277.4);
Tailwind
colors: {
  custom: {
    50: '#7565b0',
    500: '#302b8e',
    950: '#000000',
  },
}
SCSS
$custom: #302b8e;
$custom-light: #7565b0;
$custom-dark: #000000;
JSON
{
  "hex": "#302b8e",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 243.03,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36486,
    "c": 0.15726,
    "h": 277.4
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#302B8E
secondary
#B2B65F
accent
#DD4BD6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090511
muted
#7B7A80

Preview Lab

Preview with #302B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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