#313588#313588

#313588 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.136 H 275.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#313588
RGBrgb(49, 53, 136)
HSLhsl(237, 47%, 36%)
HSVhsv(237, 64%, 53%)
CMYKcmyk(64%, 61%, 0%, 46.7%)
CIE-LABlab(26.67, 25.50, -47.05)
CIE-LCHlch(26.67, 53.51, 298.45°)
OKLaboklab(37.8% 0.0134 -0.1353)
OKLCHoklch(37.8% 0.136 275.7)
XYZxyz(6.9822, 4.9762, 23.8803)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313588 #888431
analogous
#316188 #313588 #593188
triadic
#313588 #883135 #358831
tetradic
#313588 #883161 #888431 #318859
square
#313588 #883161 #888431 #318859
split-complementary
#313588 #885931 #618831
monochromatic
#11122E #21235B #313588 #4147B5 #6A6EC9

Accessibility & contrast

On white

10.52
#313588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#313588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313588
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313588#FFFFFF#000000##FFFFFF
##3135881.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313588;
/* rgb */ color: rgb(49, 53, 136);
/* oklch */ color: oklch(37.8% 0.136 275.7);
Tailwind
colors: {
  custom: {
    50: '#736cab',
    500: '#313588',
    950: '#000000',
  },
}
SCSS
$custom: #313588;
$custom-light: #736cab;
$custom-dark: #000000;
JSON
{
  "hex": "#313588",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 136
  },
  "hsl": {
    "h": 237.241,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37804,
    "c": 0.13599,
    "h": 275.7
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#313588
secondary
#B1AD64
accent
#D151D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313588

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

Preview Lab → · Contrast checker → · Palette generator →

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