#313DA3#313DA3

#313DA3 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.7% C 0.163 H 272.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#313DA3
RGBrgb(49, 61, 163)
HSLhsl(234, 54%, 42%)
HSVhsv(234, 70%, 64%)
CMYKcmyk(69.9%, 62.6%, 0%, 36.1%)
CIE-LABlab(30.96, 29.99, -56.59)
CIE-LCHlch(30.96, 64.04, 297.92°)
OKLaboklab(41.67% 0.0058 -0.1633)
OKLCHoklch(41.67% 0.163 272)
XYZxyz(9.5440, 6.6339, 35.4207)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DA3 #A39731
analogous
#3176A3 #313DA3 #5E31A3
triadic
#313DA3 #A3313D #3DA331
tetradic
#313DA3 #A33176 #A39731 #31A35E
square
#313DA3 #A33176 #A39731 #31A35E
split-complementary
#313DA3 #A35E31 #76A331
monochromatic
#151A45 #232B74 #313DA3 #4956C8 #7882D6

Accessibility & contrast

On white

9.02
#313DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#313DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DA3
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DA3#FFFFFF#000000##FFFFFF
##313DA31.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313da3;
/* rgb */ color: rgb(49, 61, 163);
/* oklch */ color: oklch(41.7% 0.163 272.0);
Tailwind
colors: {
  custom: {
    50: '#7872bf',
    500: '#313da3',
    950: '#000000',
  },
}
SCSS
$custom: #313da3;
$custom-light: #7872bf;
$custom-dark: #000000;
JSON
{
  "hex": "#313da3",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 163
  },
  "hsl": {
    "h": 233.684,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41673,
    "c": 0.16338,
    "h": 272
  },
  "luminance": 0.06635
}

Semantic roles & 50–950 ramp

primary
#313DA3
secondary
#BFB771
accent
#CE4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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