#302B8A#302B8A

#302B8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.152 H 277.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#302B8A
RGBrgb(48, 43, 138)
HSLhsl(243, 52%, 35%)
HSVhsv(243, 69%, 54%)
CMYKcmyk(65.2%, 68.8%, 0%, 45.9%)
CIE-LABlab(24.29, 32.55, -52.17)
CIE-LCHlch(24.29, 61.50, 301.96°)
OKLaboklab(36.1% 0.0209 -0.1505)
OKLCHoklch(36.1% 0.152 277.9)
XYZxyz(6.6688, 4.1906, 24.4973)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B8A #858A2B
analogous
#2B558A #302B8A #5F2B8A
triadic
#302B8A #8A302B #2B8A30
tetradic
#302B8A #8A2B55 #858A2B #2B8A5F
square
#302B8A #8A2B55 #858A2B #2B8A5F
split-complementary
#302B8A #8A5F2B #558A2B
monochromatic
#100E2D #201C5B #302B8A #403AB9 #6761CE

Accessibility & contrast

On white

11.42
#302B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302B8A
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B8A#FFFFFF#000000##FFFFFF
##302B8A1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302b8a;
/* rgb */ color: rgb(48, 43, 138);
/* oklch */ color: oklch(36.1% 0.152 277.9);
Tailwind
colors: {
  custom: {
    50: '#7465ad',
    500: '#302b8a',
    950: '#000000',
  },
}
SCSS
$custom: #302b8a;
$custom-light: #7465ad;
$custom-dark: #000000;
JSON
{
  "hex": "#302b8a",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 243.158,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36101,
    "c": 0.15191,
    "h": 277.9
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#302B8A
secondary
#AFB45D
accent
#DC4CD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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