#313388#313388

#313388 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.139 H 276.3°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#313388
RGBrgb(49, 51, 136)
HSLhsl(239, 47%, 36%)
HSVhsv(239, 64%, 53%)
CMYKcmyk(64%, 62.5%, 0%, 46.7%)
CIE-LABlab(26.15, 26.83, -47.89)
CIE-LCHlch(26.15, 54.89, 299.26°)
OKLaboklab(37.42% 0.0153 -0.1378)
OKLCHoklch(37.42% 0.139 276.3)
XYZxyz(6.8929, 4.7976, 23.8506)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313388 #888631
analogous
#315F88 #313388 #5B3188
triadic
#313388 #883133 #338831
tetradic
#313388 #88315F #888631 #31885B
square
#313388 #88315F #888631 #31885B
split-complementary
#313388 #885B31 #5F8831
monochromatic
#11112E #21225B #313388 #4144B5 #6A6CC9

Accessibility & contrast

On white

10.72
#313388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#313388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313388
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313388#FFFFFF#000000##FFFFFF
##3133881.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313388;
/* rgb */ color: rgb(49, 51, 136);
/* oklch */ color: oklch(37.4% 0.139 276.3);
Tailwind
colors: {
  custom: {
    50: '#736aab',
    500: '#313388',
    950: '#000000',
  },
}
SCSS
$custom: #313388;
$custom-light: #736aab;
$custom-dark: #000000;
JSON
{
  "hex": "#313388",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 136
  },
  "hsl": {
    "h": 238.621,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37423,
    "c": 0.13867,
    "h": 276.3
  },
  "luminance": 0.04798
}

Semantic roles & 50–950 ramp

primary
#313388
secondary
#B1AF64
accent
#D451D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313388

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

Preview Lab → · Contrast checker → · Palette generator →

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