#313D95#313D95

#313D95 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.144 H 272.4°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#313D95
RGBrgb(49, 61, 149)
HSLhsl(233, 51%, 39%)
HSVhsv(233, 67%, 58%)
CMYKcmyk(67.1%, 59.1%, 0%, 41.6%)
CIE-LABlab(29.81, 24.88, -49.95)
CIE-LCHlch(29.81, 55.81, 296.48°)
OKLaboklab(40.47% 0.006 -0.1438)
OKLCHoklch(40.47% 0.144 272.4)
XYZxyz(8.3584, 6.1596, 29.1764)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D95 #958931
analogous
#316F95 #313D95 #573195
triadic
#313D95 #95313D #3D9531
tetradic
#313D95 #95316F #958931 #319557
square
#313D95 #95316F #958931 #319557
split-complementary
#313D95 #955731 #6F9531
monochromatic
#131739 #222A67 #313D95 #4251C1 #707CD0

Accessibility & contrast

On white

9.41
#313D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#313D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D95
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D95#FFFFFF#000000##FFFFFF
##313D951.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313d95;
/* rgb */ color: rgb(49, 61, 149);
/* oklch */ color: oklch(40.5% 0.144 272.4);
Tailwind
colors: {
  custom: {
    50: '#7572b5',
    500: '#313d95',
    950: '#000000',
  },
}
SCSS
$custom: #313d95;
$custom-light: #7572b5;
$custom-dark: #000000;
JSON
{
  "hex": "#313d95",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 149
  },
  "hsl": {
    "h": 232.8,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40465,
    "c": 0.14391,
    "h": 272.4
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#313D95
secondary
#B8AE6A
accent
#C94EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313D95

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

Preview Lab → · Contrast checker → · Palette generator →

#313D95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva