#302188#302188

#302188 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.161 H 280.4°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#302188
RGBrgb(48, 33, 136)
HSLhsl(249, 61%, 33%)
HSVhsv(249, 76%, 53%)
CMYKcmyk(64.7%, 75.7%, 0%, 46.7%)
CIE-LABlab(21.92, 37.88, -54.82)
CIE-LCHlch(21.92, 66.64, 304.65°)
OKLaboklab(34.35% 0.0289 -0.1582)
OKLCHoklch(34.35% 0.161 280.4)
XYZxyz(6.2053, 3.4932, 23.6350)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302188 #798821
analogous
#214588 #302188 #632188
triadic
#302188 #883021 #218830
tetradic
#302188 #882145 #798821 #218863
square
#302188 #882145 #798821 #218863
split-complementary
#302188 #886321 #458821
monochromatic
#0D0925 #1F1557 #302188 #412DB9 #624FD4

Accessibility & contrast

On white

12.36
#302188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#302188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302188
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302188#FFFFFF#000000##FFFFFF
##3021881.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302188;
/* rgb */ color: rgb(48, 33, 136);
/* oklch */ color: oklch(34.3% 0.161 280.4);
Tailwind
colors: {
  custom: {
    50: '#745eac',
    500: '#302188',
    950: '#000000',
  },
}
SCSS
$custom: #302188;
$custom-light: #745eac;
$custom-dark: #000000;
JSON
{
  "hex": "#302188",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 248.738,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34345,
    "c": 0.16079,
    "h": 280.4
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#302188
secondary
#A8B84D
accent
#E444CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #302188

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

Preview Lab → · Contrast checker → · Palette generator →

#302188 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva