#313A95#313A95

#313A95 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.148 H 273.3°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#313A95
RGBrgb(49, 58, 149)
HSLhsl(235, 51%, 39%)
HSVhsv(235, 67%, 58%)
CMYKcmyk(67.1%, 61.1%, 0%, 41.6%)
CIE-LABlab(29.03, 26.88, -51.23)
CIE-LCHlch(29.03, 57.85, 297.68°)
OKLaboklab(39.88% 0.0086 -0.1476)
OKLCHoklch(39.88% 0.148 273.3)
XYZxyz(8.2027, 5.8483, 29.1245)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A95 #958C31
analogous
#316C95 #313A95 #5A3195
triadic
#313A95 #95313A #3A9531
tetradic
#313A95 #95316C #958C31 #31955A
square
#313A95 #95316C #958C31 #31955A
split-complementary
#313A95 #955A31 #6C9531
monochromatic
#131639 #222867 #313A95 #424EC1 #7079D0

Accessibility & contrast

On white

9.68
#313A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#313A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A95
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A95#FFFFFF#000000##FFFFFF
##313A951.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313a95;
/* rgb */ color: rgb(49, 58, 149);
/* oklch */ color: oklch(39.9% 0.148 273.3);
Tailwind
colors: {
  custom: {
    50: '#7670b5',
    500: '#313a95',
    950: '#000000',
  },
}
SCSS
$custom: #313a95;
$custom-light: #7670b5;
$custom-dark: #000000;
JSON
{
  "hex": "#313a95",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 149
  },
  "hsl": {
    "h": 234.6,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39882,
    "c": 0.14783,
    "h": 273.3
  },
  "luminance": 0.05849
}

Semantic roles & 50–950 ramp

primary
#313A95
secondary
#B8B16A
accent
#CD4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313A95

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

Preview Lab → · Contrast checker → · Palette generator →

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