#312487#312487

#312487 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.156 H 280.5°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#312487
RGBrgb(49, 36, 135)
HSLhsl(248, 58%, 34%)
HSVhsv(248, 73%, 53%)
CMYKcmyk(63.7%, 73.3%, 0%, 47.1%)
CIE-LABlab(22.53, 35.96, -53.19)
CIE-LCHlch(22.53, 64.21, 304.06°)
OKLaboklab(34.77% 0.0284 -0.1534)
OKLCHoklch(34.77% 0.156 280.5)
XYZxyz(6.2693, 3.6635, 23.2937)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312487 #7A8724
analogous
#244887 #312487 #622487
triadic
#312487 #873124 #248731
tetradic
#312487 #872448 #7A8724 #248762
square
#312487 #872448 #7A8724 #248762
split-complementary
#312487 #876224 #488724
monochromatic
#0E0A26 #1F1757 #312487 #4331B7 #6454D1

Accessibility & contrast

On white

12.12
#312487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312487
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312487#FFFFFF#000000##FFFFFF
##3124871.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.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: #312487;
/* rgb */ color: rgb(49, 36, 135);
/* oklch */ color: oklch(34.8% 0.156 280.5);
Tailwind
colors: {
  custom: {
    50: '#7460ab',
    500: '#312487',
    950: '#000000',
  },
}
SCSS
$custom: #312487;
$custom-light: #7460ab;
$custom-dark: #000000;
JSON
{
  "hex": "#312487",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 247.879,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34767,
    "c": 0.156,
    "h": 280.5
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#312487
secondary
#A8B551
accent
#E147CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312487

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

Preview Lab → · Contrast checker → · Palette generator →

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