#313B95#313B95

#313B95 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.147 H 273.0°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#313B95
RGBrgb(49, 59, 149)
HSLhsl(234, 51%, 39%)
HSVhsv(234, 67%, 58%)
CMYKcmyk(67.1%, 60.4%, 0%, 41.6%)
CIE-LABlab(29.29, 26.21, -50.81)
CIE-LCHlch(29.29, 57.17, 297.29°)
OKLaboklab(40.08% 0.0077 -0.1463)
OKLCHoklch(40.08% 0.147 273)
XYZxyz(8.2536, 5.9501, 29.1415)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B95 #958B31
analogous
#316D95 #313B95 #593195
triadic
#313B95 #95313B #3B9531
tetradic
#313B95 #95316D #958B31 #319559
square
#313B95 #95316D #958B31 #319559
split-complementary
#313B95 #955931 #6D9531
monochromatic
#131739 #222967 #313B95 #424FC1 #707AD0

Accessibility & contrast

On white

9.59
#313B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#313B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B95
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B95#FFFFFF#000000##FFFFFF
##313B951.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313b95;
/* rgb */ color: rgb(49, 59, 149);
/* oklch */ color: oklch(40.1% 0.147 273.0);
Tailwind
colors: {
  custom: {
    50: '#7570b5',
    500: '#313b95',
    950: '#000000',
  },
}
SCSS
$custom: #313b95;
$custom-light: #7570b5;
$custom-dark: #000000;
JSON
{
  "hex": "#313b95",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 149
  },
  "hsl": {
    "h": 234,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40075,
    "c": 0.14652,
    "h": 273
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#313B95
secondary
#B8B06A
accent
#CC4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313B95

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

Preview Lab → · Contrast checker → · Palette generator →

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