#313A9A#313A9A

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

Color values

HEX#313A9A
RGBrgb(49, 58, 154)
HSLhsl(235, 52%, 40%)
HSVhsv(235, 68%, 60%)
CMYKcmyk(68.2%, 62.3%, 0%, 39.6%)
CIE-LABlab(29.44, 28.69, -53.61)
CIE-LCHlch(29.44, 60.80, 298.16°)
OKLaboklab(40.32% 0.0085 -0.1546)
OKLCHoklch(40.32% 0.155 273.1)
XYZxyz(8.6105, 6.0114, 31.2721)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A9A #9A9131
analogous
#316F9A #313A9A #5C319A
triadic
#313A9A #9A313A #3A9A31
tetradic
#313A9A #9A316F #9A9131 #319A5C
square
#313A9A #9A316F #9A9131 #319A5C
split-complementary
#313A9A #9A5C31 #6F9A31
monochromatic
#13173D #22296C #313A9A #454FC4 #737BD2

Accessibility & contrast

On white

9.54
#313A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#313A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A9A
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A9A#FFFFFF#000000##FFFFFF
##313A9A1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313a9a;
/* rgb */ color: rgb(49, 58, 154);
/* oklch */ color: oklch(40.3% 0.155 273.1);
Tailwind
colors: {
  custom: {
    50: '#7770b9',
    500: '#313a9a',
    950: '#000000',
  },
}
SCSS
$custom: #313a9a;
$custom-light: #7770b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313a9a",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 154
  },
  "hsl": {
    "h": 234.857,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40318,
    "c": 0.15479,
    "h": 273.1
  },
  "luminance": 0.06012
}

Semantic roles & 50–950 ramp

primary
#313A9A
secondary
#BAB46C
accent
#CF4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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