#313A85#313A85

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

Color values

HEX#313A85
RGBrgb(49, 58, 133)
HSLhsl(234, 46%, 36%)
HSVhsv(234, 63%, 52%)
CMYKcmyk(63.2%, 56.4%, 0%, 47.8%)
CIE-LABlab(27.77, 21.04, -43.39)
CIE-LCHlch(27.77, 48.23, 295.87°)
OKLaboklab(38.55% 0.0084 -0.1245)
OKLCHoklch(38.55% 0.125 273.9)
XYZxyz(7.0119, 5.3720, 22.8531)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A85 #857C31
analogous
#316485 #313A85 #523185
triadic
#313A85 #85313A #3A8531
tetradic
#313A85 #853164 #857C31 #318552
square
#313A85 #853164 #857C31 #318552
split-complementary
#313A85 #855231 #648531
monochromatic
#10132C #212658 #313A85 #414EB2 #6973C8

Accessibility & contrast

On white

10.12
#313A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#313A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A85
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A85#FFFFFF#000000##FFFFFF
##313A851.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044588
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313a85;
/* rgb */ color: rgb(49, 58, 133);
/* oklch */ color: oklch(38.6% 0.125 273.9);
Tailwind
colors: {
  custom: {
    50: '#7270a9',
    500: '#313a85',
    950: '#000000',
  },
}
SCSS
$custom: #313a85;
$custom-light: #7270a9;
$custom-dark: #000000;
JSON
{
  "hex": "#313a85",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 133
  },
  "hsl": {
    "h": 233.571,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3855,
    "c": 0.12481,
    "h": 273.9
  },
  "luminance": 0.05373
}

Semantic roles & 50–950 ramp

primary
#313A85
secondary
#AFA763
accent
#C852D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #313A85

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

Preview Lab → · Contrast checker → · Palette generator →

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