#313D96#313D96

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

Color values

HEX#313D96
RGBrgb(49, 61, 150)
HSLhsl(233, 51%, 39%)
HSVhsv(233, 67%, 59%)
CMYKcmyk(67.3%, 59.3%, 0%, 41.2%)
CIE-LABlab(29.89, 25.25, -50.44)
CIE-LCHlch(29.89, 56.40, 296.59°)
OKLaboklab(40.55% 0.006 -0.1452)
OKLCHoklch(40.55% 0.145 272.4)
XYZxyz(8.4385, 6.1917, 29.5987)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D96 #968A31
analogous
#317096 #313D96 #583196
triadic
#313D96 #96313D #3D9631
tetradic
#313D96 #963170 #968A31 #319658
square
#313D96 #963170 #968A31 #319658
split-complementary
#313D96 #965831 #709631
monochromatic
#13173A #222A68 #313D96 #4352C1 #717CD1

Accessibility & contrast

On white

9.38
#313D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#313D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D96
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D96#FFFFFF#000000##FFFFFF
##313D961.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313d96;
/* rgb */ color: rgb(49, 61, 150);
/* oklch */ color: oklch(40.5% 0.145 272.4);
Tailwind
colors: {
  custom: {
    50: '#7672b6',
    500: '#313d96',
    950: '#000000',
  },
}
SCSS
$custom: #313d96;
$custom-light: #7672b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313d96",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 150
  },
  "hsl": {
    "h": 232.871,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40549,
    "c": 0.14533,
    "h": 272.4
  },
  "luminance": 0.06192
}

Semantic roles & 50–950 ramp

primary
#313D96
secondary
#B8AF6A
accent
#CA4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313D96

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

Preview Lab → · Contrast checker → · Palette generator →

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