#313C88#313C88

#313C88 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.126 H 272.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#313C88
RGBrgb(49, 60, 136)
HSLhsl(232, 47%, 36%)
HSVhsv(232, 64%, 53%)
CMYKcmyk(64%, 55.9%, 0%, 46.7%)
CIE-LABlab(28.54, 20.78, -44.01)
CIE-LCHlch(28.54, 48.67, 295.28°)
OKLaboklab(39.2% 0.0065 -0.1263)
OKLCHoklch(39.2% 0.126 272.9)
XYZxyz(7.3249, 5.6617, 23.9946)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C88 #887D31
analogous
#316888 #313C88 #523188
triadic
#313C88 #88313C #3C8831
tetradic
#313C88 #883168 #887D31 #318852
square
#313C88 #883168 #887D31 #318852
split-complementary
#313C88 #885231 #688831
monochromatic
#11142E #21285B #313C88 #4150B5 #6A76C9

Accessibility & contrast

On white

9.85
#313C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C88
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C88#FFFFFF#000000##FFFFFF
##313C881.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06478B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313c88;
/* rgb */ color: rgb(49, 60, 136);
/* oklch */ color: oklch(39.2% 0.126 272.9);
Tailwind
colors: {
  custom: {
    50: '#7371ab',
    500: '#313c88',
    950: '#000000',
  },
}
SCSS
$custom: #313c88;
$custom-light: #7371ab;
$custom-dark: #000000;
JSON
{
  "hex": "#313c88",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 136
  },
  "hsl": {
    "h": 232.414,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39201,
    "c": 0.12648,
    "h": 272.9
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#313C88
secondary
#B1A764
accent
#C651D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313C88

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

Preview Lab → · Contrast checker → · Palette generator →

#313C88 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva