#313E88#313E88

#313E88 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.124 H 272.1°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#313E88
RGBrgb(49, 62, 136)
HSLhsl(231, 47%, 36%)
HSVhsv(231, 64%, 53%)
CMYKcmyk(64%, 54.4%, 0%, 46.7%)
CIE-LABlab(29.10, 19.43, -43.11)
CIE-LCHlch(29.10, 47.29, 294.26°)
OKLaboklab(39.62% 0.0044 -0.1236)
OKLCHoklch(39.62% 0.124 272.1)
XYZxyz(7.4317, 5.8752, 24.0302)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E88 #887B31
analogous
#316A88 #313E88 #503188
triadic
#313E88 #88313E #3E8831
tetradic
#313E88 #88316A #887B31 #318850
square
#313E88 #88316A #887B31 #318850
split-complementary
#313E88 #885031 #6A8831
monochromatic
#11152E #21295B #313E88 #4153B5 #6A78C9

Accessibility & contrast

On white

9.65
#313E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#313E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E88
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E88#FFFFFF#000000##FFFFFF
##313E881.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F498B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313e88;
/* rgb */ color: rgb(49, 62, 136);
/* oklch */ color: oklch(39.6% 0.124 272.1);
Tailwind
colors: {
  custom: {
    50: '#7373ab',
    500: '#313e88',
    950: '#000000',
  },
}
SCSS
$custom: #313e88;
$custom-light: #7373ab;
$custom-dark: #000000;
JSON
{
  "hex": "#313e88",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 136
  },
  "hsl": {
    "h": 231.034,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39617,
    "c": 0.12373,
    "h": 272.1
  },
  "luminance": 0.05876
}

Semantic roles & 50–950 ramp

primary
#313E88
secondary
#B1A564
accent
#C351D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #313E88

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

Preview Lab → · Contrast checker → · Palette generator →

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