#302387#302387

#302387 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.157 H 280.1°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#302387
RGBrgb(48, 35, 135)
HSLhsl(248, 59%, 33%)
HSVhsv(248, 74%, 53%)
CMYKcmyk(64.4%, 74.1%, 0%, 47.1%)
CIE-LABlab(22.23, 36.41, -53.68)
CIE-LCHlch(22.23, 64.86, 304.14°)
OKLaboklab(34.53% 0.0277 -0.1549)
OKLCHoklch(34.53% 0.157 280.1)
XYZxyz(6.1917, 3.5792, 23.2815)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302387 #7A8723
analogous
#234887 #302387 #622387
triadic
#302387 #873023 #238730
tetradic
#302387 #872348 #7A8723 #238762
square
#302387 #872348 #7A8723 #238762
split-complementary
#302387 #876223 #488723
monochromatic
#0D0A26 #1F1656 #302387 #4130B8 #6352D2

Accessibility & contrast

On white

12.24
#302387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#302387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302387
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302387#FFFFFF#000000##FFFFFF
##3023871.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #302387;
/* rgb */ color: rgb(48, 35, 135);
/* oklch */ color: oklch(34.5% 0.157 280.1);
Tailwind
colors: {
  custom: {
    50: '#7460ab',
    500: '#302387',
    950: '#000000',
  },
}
SCSS
$custom: #302387;
$custom-light: #7460ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302387",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 247.8,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34533,
    "c": 0.15732,
    "h": 280.1
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#302387
secondary
#A9B650
accent
#E246CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302387

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

Preview Lab → · Contrast checker → · Palette generator →

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