#313E90#313E90

#313E90 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.135 H 272.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#313E90
RGBrgb(49, 62, 144)
HSLhsl(232, 49%, 38%)
HSVhsv(232, 66%, 56%)
CMYKcmyk(66%, 56.9%, 0%, 43.5%)
CIE-LABlab(29.69, 22.38, -47.09)
CIE-LCHlch(29.69, 52.13, 295.42°)
OKLaboklab(40.25% 0.0049 -0.1353)
OKLCHoklch(40.25% 0.135 272.1)
XYZxyz(8.0216, 6.1111, 27.1370)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E90 #908331
analogous
#316E90 #313E90 #533190
triadic
#313E90 #90313E #3E9031
tetradic
#313E90 #90316E #908331 #319053
square
#313E90 #90316E #908331 #319053
split-complementary
#313E90 #905331 #6E9031
monochromatic
#121735 #212A62 #313E90 #4152BE #6E7BCE

Accessibility & contrast

On white

9.45
#313E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#313E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E90
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E90#FFFFFF#000000##FFFFFF
##313E901.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A93
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313e90;
/* rgb */ color: rgb(49, 62, 144);
/* oklch */ color: oklch(40.3% 0.135 272.1);
Tailwind
colors: {
  custom: {
    50: '#7473b1',
    500: '#313e90',
    950: '#000000',
  },
}
SCSS
$custom: #313e90;
$custom-light: #7473b1;
$custom-dark: #000000;
JSON
{
  "hex": "#313e90",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 144
  },
  "hsl": {
    "h": 231.789,
    "s": 49.223,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40253,
    "c": 0.13543,
    "h": 272.1
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#313E90
secondary
#B5AB68
accent
#C64FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313E90

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

Preview Lab → · Contrast checker → · Palette generator →

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