#313E95#313E95

#313E95 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.143 H 272.0°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#313E95
RGBrgb(49, 62, 149)
HSLhsl(232, 51%, 39%)
HSVhsv(232, 67%, 58%)
CMYKcmyk(67.1%, 58.4%, 0%, 41.6%)
CIE-LABlab(30.08, 24.21, -49.52)
CIE-LCHlch(30.08, 55.13, 296.06°)
OKLaboklab(40.66% 0.0051 -0.1425)
OKLCHoklch(40.66% 0.143 272)
XYZxyz(8.4122, 6.2674, 29.1944)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E95 #958831
analogous
#317095 #313E95 #563195
triadic
#313E95 #95313E #3E9531
tetradic
#313E95 #953170 #958831 #319556
square
#313E95 #953170 #958831 #319556
split-complementary
#313E95 #955631 #709531
monochromatic
#131839 #222B67 #313E95 #4253C1 #707DD0

Accessibility & contrast

On white

9.32
#313E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313E95
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E95#FFFFFF#000000##FFFFFF
##313E951.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313e95;
/* rgb */ color: rgb(49, 62, 149);
/* oklch */ color: oklch(40.7% 0.143 272.0);
Tailwind
colors: {
  custom: {
    50: '#7573b5',
    500: '#313e95',
    950: '#000000',
  },
}
SCSS
$custom: #313e95;
$custom-light: #7573b5;
$custom-dark: #000000;
JSON
{
  "hex": "#313e95",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 149
  },
  "hsl": {
    "h": 232.2,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40663,
    "c": 0.1426,
    "h": 272
  },
  "luminance": 0.06268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313E95

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

Preview Lab → · Contrast checker → · Palette generator →

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