#302399#302399

#302399 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.180 H 277.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#302399
RGBrgb(48, 35, 153)
HSLhsl(247, 63%, 37%)
HSVhsv(247, 77%, 60%)
CMYKcmyk(68.6%, 77.1%, 0%, 40%)
CIE-LABlab(24.10, 42.28, -61.77)
CIE-LCHlch(24.10, 74.85, 304.39°)
OKLaboklab(36.41% 0.0236 -0.1785)
OKLCHoklch(36.41% 0.18 277.5)
XYZxyz(7.5679, 4.1297, 30.5291)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302399 #8C9923
analogous
#235199 #302399 #6B2399
triadic
#302399 #993023 #239930
tetradic
#302399 #992351 #8C9923 #23996B
square
#302399 #992351 #8C9923 #23996B
split-complementary
#302399 #996B23 #519923
monochromatic
#110C35 #201867 #302399 #402ECB #6A5DDA

Accessibility & contrast

On white

11.50
#302399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#302399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302399
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302399#FFFFFF#000000##FFFFFF
##3023991.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302399;
/* rgb */ color: rgb(48, 35, 153);
/* oklch */ color: oklch(36.4% 0.180 277.5);
Tailwind
colors: {
  custom: {
    50: '#7860b8',
    500: '#302399',
    950: '#000000',
  },
}
SCSS
$custom: #302399;
$custom-light: #7860b8;
$custom-dark: #000000;
JSON
{
  "hex": "#302399",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 246.61,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36414,
    "c": 0.18002,
    "h": 277.5
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#302399
secondary
#B3BE59
accent
#E642D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #302399

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

Preview Lab → · Contrast checker → · Palette generator →

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