#313A92#313A92

#313A92 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.144 H 273.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#313A92
RGBrgb(49, 58, 146)
HSLhsl(234, 50%, 38%)
HSVhsv(234, 66%, 57%)
CMYKcmyk(66.4%, 60.3%, 0%, 42.7%)
CIE-LABlab(28.78, 25.79, -49.79)
CIE-LCHlch(28.78, 56.07, 297.38°)
OKLaboklab(39.63% 0.0087 -0.1433)
OKLCHoklch(39.63% 0.144 273.5)
XYZxyz(7.9663, 5.7537, 27.8793)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A92 #928931
analogous
#316A92 #313A92 #583192
triadic
#313A92 #92313A #3A9231
tetradic
#313A92 #92316A #928931 #319258
square
#313A92 #92316A #928931 #319258
split-complementary
#313A92 #925831 #6A9231
monochromatic
#121636 #222864 #313A92 #414DBF #6F78CF

Accessibility & contrast

On white

9.76
#313A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#313A92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A92
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A92#FFFFFF#000000##FFFFFF
##313A921.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#004090
Tritanopia (blue-blind)
#005060
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313a92;
/* rgb */ color: rgb(49, 58, 146);
/* oklch */ color: oklch(39.6% 0.144 273.5);
Tailwind
colors: {
  custom: {
    50: '#7570b3',
    500: '#313a92',
    950: '#000000',
  },
}
SCSS
$custom: #313a92;
$custom-light: #7570b3;
$custom-dark: #000000;
JSON
{
  "hex": "#313a92",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 146
  },
  "hsl": {
    "h": 234.433,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39625,
    "c": 0.1436,
    "h": 273.5
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

primary
#313A92
secondary
#B6AF69
accent
#CC4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313A92

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

Preview Lab → · Contrast checker → · Palette generator →

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