#313D97#313D97

#313D97 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.147 H 272.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#313D97
RGBrgb(49, 61, 151)
HSLhsl(233, 51%, 39%)
HSVhsv(233, 68%, 59%)
CMYKcmyk(67.5%, 59.6%, 0%, 40.8%)
CIE-LABlab(29.97, 25.62, -50.92)
CIE-LCHlch(29.97, 57.00, 296.71°)
OKLaboklab(40.63% 0.006 -0.1466)
OKLCHoklch(40.63% 0.147 272.3)
XYZxyz(8.5194, 6.2240, 30.0246)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D97 #978B31
analogous
#317097 #313D97 #583197
triadic
#313D97 #97313D #3D9731
tetradic
#313D97 #973170 #978B31 #319758
square
#313D97 #973170 #978B31 #319758
split-complementary
#313D97 #975831 #709731
monochromatic
#13183B #222A69 #313D97 #4352C2 #717DD1

Accessibility & contrast

On white

9.35
#313D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#313D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D97
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D97#FFFFFF#000000##FFFFFF
##313D971.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313d97;
/* rgb */ color: rgb(49, 61, 151);
/* oklch */ color: oklch(40.6% 0.147 272.3);
Tailwind
colors: {
  custom: {
    50: '#7672b6',
    500: '#313d97',
    950: '#000000',
  },
}
SCSS
$custom: #313d97;
$custom-light: #7672b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313d97",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 232.941,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40634,
    "c": 0.14674,
    "h": 272.3
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#313D97
secondary
#B9B06B
accent
#CA4DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313D97

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

Preview Lab → · Contrast checker → · Palette generator →

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