#313AB9#313AB9

#313AB9 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.2% C 0.196 H 271.8°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#313AB9
RGBrgb(49, 58, 185)
HSLhsl(236, 58%, 46%)
HSVhsv(236, 74%, 73%)
CMYKcmyk(73.5%, 68.6%, 0%, 27.5%)
CIE-LABlab(32.21, 39.72, -67.66)
CIE-LCHlch(32.21, 78.46, 300.41°)
OKLaboklab(43.2% 0.0062 -0.1957)
OKLCHoklch(43.2% 0.196 271.8)
XYZxyz(11.5337, 7.1807, 46.6677)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AB9 #B9B031
analogous
#317EB9 #313AB9 #6C31B9
triadic
#313AB9 #B9313A #3AB931
tetradic
#313AB9 #B9317E #B9B031 #31B96C
square
#313AB9 #B9317E #B9B031 #31B96C
split-complementary
#313AB9 #B96C31 #7EB931
monochromatic
#171C58 #242B89 #313AB9 #555DD2 #868BDF

Accessibility & contrast

On white

8.62
#313AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#313AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AB9
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AB9#FFFFFF#000000##FFFFFF
##313AB91.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#005D75
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313ab9;
/* rgb */ color: rgb(49, 58, 185);
/* oklch */ color: oklch(43.2% 0.196 271.8);
Tailwind
colors: {
  custom: {
    50: '#7e71cf',
    500: '#313ab9',
    950: '#000000',
  },
}
SCSS
$custom: #313ab9;
$custom-light: #7e71cf;
$custom-dark: #000000;
JSON
{
  "hex": "#313ab9",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 185
  },
  "hsl": {
    "h": 236.029,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43196,
    "c": 0.19582,
    "h": 271.8
  },
  "luminance": 0.07182
}

Semantic roles & 50–950 ramp

primary
#313AB9
secondary
#C8C37D
accent
#D746E1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #313AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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