#302099#302099

#302099 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.183 H 277.9°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#302099
RGBrgb(48, 32, 153)
HSLhsl(248, 65%, 36%)
HSVhsv(248, 79%, 60%)
CMYKcmyk(68.6%, 79.1%, 0%, 40%)
CIE-LABlab(23.54, 43.86, -62.69)
CIE-LCHlch(23.54, 76.51, 304.98°)
OKLaboklab(36.03% 0.0252 -0.1811)
OKLCHoklch(36.03% 0.183 277.9)
XYZxyz(7.4833, 3.9607, 30.5009)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302099 #899920
analogous
#204D99 #302099 #6D2099
triadic
#302099 #993020 #209930
tetradic
#302099 #99204D #899920 #20996D
square
#302099 #99204D #899920 #20996D
split-complementary
#302099 #996D20 #4D9920
monochromatic
#100B34 #201566 #302099 #402BCC #6957DC

Accessibility & contrast

On white

11.72
#302099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#302099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302099
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302099#FFFFFF#000000##FFFFFF
##3020991.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302099;
/* rgb */ color: rgb(48, 32, 153);
/* oklch */ color: oklch(36.0% 0.183 277.9);
Tailwind
colors: {
  custom: {
    50: '#785fb8',
    500: '#302099',
    950: '#000000',
  },
}
SCSS
$custom: #302099;
$custom-light: #785fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#302099",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 247.934,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36025,
    "c": 0.18285,
    "h": 277.9
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#302099
secondary
#B2C055
accent
#E83FD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #302099

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

Preview Lab → · Contrast checker → · Palette generator →

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