#313DAA#313DAA

#313DAA is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.173 H 271.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#313DAA
RGBrgb(49, 61, 170)
HSLhsl(234, 55%, 43%)
HSVhsv(234, 71%, 67%)
CMYKcmyk(71.2%, 64.1%, 0%, 33.3%)
CIE-LABlab(31.56, 32.52, -59.81)
CIE-LCHlch(31.56, 68.08, 298.53°)
OKLaboklab(42.3% 0.0055 -0.1727)
OKLCHoklch(42.3% 0.173 271.8)
XYZxyz(10.1886, 6.8917, 38.8157)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DAA #AA9E31
analogous
#3179AA #313DAA #6231AA
triadic
#313DAA #AA313D #3DAA31
tetradic
#313DAA #AA3179 #AA9E31 #31AA62
square
#313DAA #AA3179 #AA9E31 #31AA62
split-complementary
#313DAA #AA6231 #79AA31
monochromatic
#161B4B #232C7A #313DAA #4D59CC #7C85D9

Accessibility & contrast

On white

8.83
#313DAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#313DAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DAA
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DAA#FFFFFF#000000##FFFFFF
##313DAA1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313daa;
/* rgb */ color: rgb(49, 61, 170);
/* oklch */ color: oklch(42.3% 0.173 271.8);
Tailwind
colors: {
  custom: {
    50: '#7a72c4',
    500: '#313daa',
    950: '#000000',
  },
}
SCSS
$custom: #313daa;
$custom-light: #7a72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#313daa",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 170
  },
  "hsl": {
    "h": 234.05,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42301,
    "c": 0.17283,
    "h": 271.8
  },
  "luminance": 0.06893
}

Semantic roles & 50–950 ramp

primary
#313DAA
secondary
#C2BA75
accent
#D049DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #313DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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