#313181#313181

#313181 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.131 H 277.7°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#313181
RGBrgb(49, 49, 129)
HSLhsl(240, 45%, 35%)
HSVhsv(240, 62%, 51%)
CMYKcmyk(62%, 62%, 0%, 49.4%)
CIE-LABlab(25.06, 25.66, -45.29)
CIE-LCHlch(25.06, 52.05, 299.53°)
OKLaboklab(36.44% 0.0175 -0.1302)
OKLCHoklch(36.44% 0.131 277.7)
XYZxyz(6.3261, 4.4341, 21.2871)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313181 #818131
analogous
#315981 #313181 #593181
triadic
#313181 #813131 #318131
tetradic
#313181 #813159 #818131 #318159
square
#313181 #813159 #818131 #318159
split-complementary
#313181 #815931 #598131
monochromatic
#0F0F28 #202055 #313181 #4242AD #6767C5

Accessibility & contrast

On white

11.13
#313181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#313181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313181
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313181#FFFFFF#000000##FFFFFF
##3131811.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313181;
/* rgb */ color: rgb(49, 49, 129);
/* oklch */ color: oklch(36.4% 0.131 277.7);
Tailwind
colors: {
  custom: {
    50: '#7269a6',
    500: '#313181',
    950: '#000000',
  },
}
SCSS
$custom: #313181;
$custom-light: #7269a6;
$custom-dark: #000000;
JSON
{
  "hex": "#313181",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 240,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36436,
    "c": 0.13136,
    "h": 277.7
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#313181
secondary
#ADAD61
accent
#D553D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #313181

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

Preview Lab → · Contrast checker → · Palette generator →

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