#313A86#313A86

#313A86 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.126 H 273.8°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#313A86
RGBrgb(49, 58, 134)
HSLhsl(234, 46%, 36%)
HSVhsv(234, 63%, 53%)
CMYKcmyk(63.4%, 56.7%, 0%, 47.5%)
CIE-LABlab(27.84, 21.41, -43.89)
CIE-LCHlch(27.84, 48.84, 296.00°)
OKLaboklab(38.63% 0.0084 -0.126)
OKLCHoklch(38.63% 0.126 273.8)
XYZxyz(7.0813, 5.3997, 23.2187)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A86 #867D31
analogous
#316486 #313A86 #523186
triadic
#313A86 #86313A #3A8631
tetradic
#313A86 #863164 #867D31 #318652
square
#313A86 #863164 #867D31 #318652
split-complementary
#313A86 #865231 #648631
monochromatic
#10132C #212759 #313A86 #414DB3 #6973C8

Accessibility & contrast

On white

10.10
#313A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A86
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A86#FFFFFF#000000##FFFFFF
##313A861.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014689
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313a86;
/* rgb */ color: rgb(49, 58, 134);
/* oklch */ color: oklch(38.6% 0.126 273.8);
Tailwind
colors: {
  custom: {
    50: '#7270aa',
    500: '#313a86',
    950: '#000000',
  },
}
SCSS
$custom: #313a86;
$custom-light: #7270aa;
$custom-dark: #000000;
JSON
{
  "hex": "#313a86",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 134
  },
  "hsl": {
    "h": 233.647,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38631,
    "c": 0.12628,
    "h": 273.8
  },
  "luminance": 0.054
}

Semantic roles & 50–950 ramp

primary
#313A86
secondary
#B0A863
accent
#C852D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313A86

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

Preview Lab → · Contrast checker → · Palette generator →

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