#313481#313481

#313481 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.127 H 276.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#313481
RGBrgb(49, 52, 129)
HSLhsl(238, 45%, 35%)
HSVhsv(238, 62%, 51%)
CMYKcmyk(62%, 59.7%, 0%, 49.4%)
CIE-LABlab(25.84, 23.65, -44.01)
CIE-LCHlch(25.84, 49.96, 298.25°)
OKLaboklab(37.02% 0.0145 -0.1264)
OKLCHoklch(37.02% 0.127 276.5)
XYZxyz(6.4558, 4.6934, 21.3303)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313481 #817E31
analogous
#315C81 #313481 #563181
triadic
#313481 #813134 #348131
tetradic
#313481 #81315C #817E31 #318156
square
#313481 #81315C #817E31 #318156
split-complementary
#313481 #815631 #5C8131
monochromatic
#0F1028 #202255 #313481 #4246AD #676BC5

Accessibility & contrast

On white

10.83
#313481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#313481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313481
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313481#FFFFFF#000000##FFFFFF
##3134811.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313481;
/* rgb */ color: rgb(49, 52, 129);
/* oklch */ color: oklch(37.0% 0.127 276.5);
Tailwind
colors: {
  custom: {
    50: '#726ba6',
    500: '#313481',
    950: '#000000',
  },
}
SCSS
$custom: #313481;
$custom-light: #726ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#313481",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 129
  },
  "hsl": {
    "h": 237.75,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37017,
    "c": 0.12724,
    "h": 276.5
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

primary
#313481
secondary
#ADAA61
accent
#D053D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #313481

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

Preview Lab → · Contrast checker → · Palette generator →

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