#313381#313381

#313381 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.129 H 276.9°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#313381
RGBrgb(49, 51, 129)
HSLhsl(239, 45%, 35%)
HSVhsv(239, 62%, 51%)
CMYKcmyk(62%, 60.5%, 0%, 49.4%)
CIE-LABlab(25.58, 24.32, -44.44)
CIE-LCHlch(25.58, 50.66, 298.69°)
OKLaboklab(36.82% 0.0155 -0.1277)
OKLCHoklch(36.82% 0.129 276.9)
XYZxyz(6.4116, 4.6051, 21.3156)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313381 #817F31
analogous
#315B81 #313381 #573181
triadic
#313381 #813133 #338131
tetradic
#313381 #81315B #817F31 #318157
square
#313381 #81315B #817F31 #318157
split-complementary
#313381 #815731 #5B8131
monochromatic
#0F1028 #202155 #313381 #4245AD #6769C5

Accessibility & contrast

On white

10.93
#313381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#313381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313381
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313381#FFFFFF#000000##FFFFFF
##3133811.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313381;
/* rgb */ color: rgb(49, 51, 129);
/* oklch */ color: oklch(36.8% 0.129 276.9);
Tailwind
colors: {
  custom: {
    50: '#726aa6',
    500: '#313381',
    950: '#000000',
  },
}
SCSS
$custom: #313381;
$custom-light: #726aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#313381",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 129
  },
  "hsl": {
    "h": 238.5,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36821,
    "c": 0.12862,
    "h": 276.9
  },
  "luminance": 0.04606
}

Semantic roles & 50–950 ramp

primary
#313381
secondary
#ADAB61
accent
#D153D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #313381

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

Preview Lab → · Contrast checker → · Palette generator →

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