#313F95#313F95

#313F95 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.141 H 271.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#313F95
RGBrgb(49, 63, 149)
HSLhsl(232, 51%, 39%)
HSVhsv(232, 67%, 58%)
CMYKcmyk(67.1%, 57.7%, 0%, 41.6%)
CIE-LABlab(30.34, 23.55, -49.09)
CIE-LCHlch(30.34, 54.44, 295.63°)
OKLaboklab(40.86% 0.0041 -0.1412)
OKLCHoklch(40.86% 0.141 271.7)
XYZxyz(8.4671, 6.3771, 29.2126)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F95 #958731
analogous
#317195 #313F95 #553195
triadic
#313F95 #95313F #3F9531
tetradic
#313F95 #953171 #958731 #319555
square
#313F95 #953171 #958731 #319555
split-complementary
#313F95 #955531 #719531
monochromatic
#131839 #222C67 #313F95 #4254C1 #707ED0

Accessibility & contrast

On white

9.23
#313F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#313F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F95
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F95#FFFFFF#000000##FFFFFF
##313F951.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313f95;
/* rgb */ color: rgb(49, 63, 149);
/* oklch */ color: oklch(40.9% 0.141 271.7);
Tailwind
colors: {
  custom: {
    50: '#7573b5',
    500: '#313f95',
    950: '#000000',
  },
}
SCSS
$custom: #313f95;
$custom-light: #7573b5;
$custom-dark: #000000;
JSON
{
  "hex": "#313f95",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 149
  },
  "hsl": {
    "h": 231.6,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40863,
    "c": 0.14128,
    "h": 271.7
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#313F95
secondary
#B8AD6A
accent
#C64EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313F95

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

Preview Lab → · Contrast checker → · Palette generator →

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