#312488#312488

#312488 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.157 H 280.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#312488
RGBrgb(49, 36, 136)
HSLhsl(248, 58%, 34%)
HSVhsv(248, 74%, 53%)
CMYKcmyk(64%, 73.5%, 0%, 46.7%)
CIE-LABlab(22.63, 36.29, -53.66)
CIE-LCHlch(22.63, 64.78, 304.07°)
OKLaboklab(34.87% 0.0282 -0.1547)
OKLCHoklch(34.87% 0.157 280.3)
XYZxyz(6.3400, 3.6918, 23.6663)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312488 #7B8824
analogous
#244988 #312488 #632488
triadic
#312488 #883124 #248831
tetradic
#312488 #882449 #7B8824 #248863
square
#312488 #882449 #7B8824 #248863
split-complementary
#312488 #886324 #498824
monochromatic
#0E0A27 #201758 #312488 #4231B8 #6555D2

Accessibility & contrast

On white

12.08
#312488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#312488 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312488
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312488#FFFFFF#000000##FFFFFF
##3124881.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #312488;
/* rgb */ color: rgb(49, 36, 136);
/* oklch */ color: oklch(34.9% 0.157 280.3);
Tailwind
colors: {
  custom: {
    50: '#7560ac',
    500: '#312488',
    950: '#000000',
  },
}
SCSS
$custom: #312488;
$custom-light: #7560ac;
$custom-dark: #000000;
JSON
{
  "hex": "#312488",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 136
  },
  "hsl": {
    "h": 247.8,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34867,
    "c": 0.15729,
    "h": 280.3
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#312488
secondary
#A9B652
accent
#E146CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312488

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

Preview Lab → · Contrast checker → · Palette generator →

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