#302487#302487

#302487 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.156 H 279.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#302487
RGBrgb(48, 36, 135)
HSLhsl(247, 58%, 34%)
HSVhsv(247, 73%, 53%)
CMYKcmyk(64.4%, 73.3%, 0%, 47.1%)
CIE-LABlab(22.44, 35.82, -53.34)
CIE-LCHlch(22.44, 64.25, 303.88°)
OKLaboklab(34.68% 0.0269 -0.1538)
OKLCHoklch(34.68% 0.156 279.9)
XYZxyz(6.2216, 3.6389, 23.2915)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302487 #7B8724
analogous
#244987 #302487 #612487
triadic
#302487 #873024 #248730
tetradic
#302487 #872449 #7B8724 #248761
square
#302487 #872449 #7B8724 #248761
split-complementary
#302487 #876124 #498724
monochromatic
#0E0A26 #1F1757 #302487 #4131B7 #6354D1

Accessibility & contrast

On white

12.15
#302487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#302487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302487
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302487#FFFFFF#000000##FFFFFF
##3024871.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #302487;
/* rgb */ color: rgb(48, 36, 135);
/* oklch */ color: oklch(34.7% 0.156 279.9);
Tailwind
colors: {
  custom: {
    50: '#7460ab',
    500: '#302487',
    950: '#000000',
  },
}
SCSS
$custom: #302487;
$custom-light: #7460ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302487",
  "rgb": {
    "r": 48,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 247.273,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34683,
    "c": 0.15619,
    "h": 279.9
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#302487
secondary
#A9B551
accent
#E147CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302487

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

Preview Lab → · Contrast checker → · Palette generator →

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