#313188#313188

#313188 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.141 H 277.0°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#313188
RGBrgb(49, 49, 136)
HSLhsl(240, 47%, 36%)
HSVhsv(240, 64%, 53%)
CMYKcmyk(64%, 64%, 0%, 46.7%)
CIE-LABlab(25.64, 28.15, -48.71)
CIE-LCHlch(25.64, 56.26, 300.02°)
OKLaboklab(37.05% 0.0172 -0.1403)
OKLCHoklch(37.05% 0.141 277)
XYZxyz(6.8074, 4.6266, 23.8221)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313188 #888831
analogous
#315D88 #313188 #5D3188
triadic
#313188 #883131 #318831
tetradic
#313188 #88315D #888831 #31885D
square
#313188 #88315D #888831 #31885D
split-complementary
#313188 #885D31 #5D8831
monochromatic
#11112E #21215B #313188 #4141B5 #6A6AC9

Accessibility & contrast

On white

10.91
#313188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#313188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313188
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313188#FFFFFF#000000##FFFFFF
##3131881.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313188;
/* rgb */ color: rgb(49, 49, 136);
/* oklch */ color: oklch(37.0% 0.141 277.0);
Tailwind
colors: {
  custom: {
    50: '#7469ab',
    500: '#313188',
    950: '#000000',
  },
}
SCSS
$custom: #313188;
$custom-light: #7469ab;
$custom-dark: #000000;
JSON
{
  "hex": "#313188",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 240,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3705,
    "c": 0.14131,
    "h": 277
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#313188
secondary
#B1B164
accent
#D751D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313188

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

Preview Lab → · Contrast checker → · Palette generator →

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