#313A9B#313A9B

#313A9B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.156 H 273.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#313A9B
RGBrgb(49, 58, 155)
HSLhsl(235, 52%, 40%)
HSVhsv(235, 68%, 61%)
CMYKcmyk(68.4%, 62.6%, 0%, 39.2%)
CIE-LABlab(29.53, 29.06, -54.08)
CIE-LCHlch(29.53, 61.39, 298.25°)
OKLaboklab(40.41% 0.0085 -0.1559)
OKLCHoklch(40.41% 0.156 273.1)
XYZxyz(8.6941, 6.0448, 31.7126)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A9B #9B9231
analogous
#316F9B #313A9B #5D319B
triadic
#313A9B #9B313A #3A9B31
tetradic
#313A9B #9B316F #9B9231 #319B5D
square
#313A9B #9B316F #9B9231 #319B5D
split-complementary
#313A9B #9B5D31 #6F9B31
monochromatic
#14173E #22296D #313A9B #4550C4 #737CD3

Accessibility & contrast

On white

9.51
#313A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#313A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A9B
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A9B#FFFFFF#000000##FFFFFF
##313A9B1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313a9b;
/* rgb */ color: rgb(49, 58, 155);
/* oklch */ color: oklch(40.4% 0.156 273.1);
Tailwind
colors: {
  custom: {
    50: '#7770b9',
    500: '#313a9b',
    950: '#000000',
  },
}
SCSS
$custom: #313a9b;
$custom-light: #7770b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313a9b",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 234.906,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.40407,
    "c": 0.15617,
    "h": 273.1
  },
  "luminance": 0.06046
}

Semantic roles & 50–950 ramp

primary
#313A9B
secondary
#BBB46D
accent
#CF4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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