#313DA1#313DA1

#313DA1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.161 H 272.1°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#313DA1
RGBrgb(49, 61, 161)
HSLhsl(234, 53%, 41%)
HSVhsv(234, 70%, 63%)
CMYKcmyk(69.6%, 62.1%, 0%, 36.9%)
CIE-LABlab(30.79, 29.27, -55.66)
CIE-LCHlch(30.79, 62.88, 297.74°)
OKLaboklab(41.5% 0.0059 -0.1605)
OKLCHoklch(41.5% 0.161 272.1)
XYZxyz(9.3662, 6.5628, 34.4844)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DA1 #A19531
analogous
#3175A1 #313DA1 #5D31A1
triadic
#313DA1 #A1313D #3DA131
tetradic
#313DA1 #A13175 #A19531 #31A15D
square
#313DA1 #A13175 #A19531 #31A15D
split-complementary
#313DA1 #A15D31 #75A131
monochromatic
#141943 #232B72 #313DA1 #4856C7 #7781D6

Accessibility & contrast

On white

9.08
#313DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#313DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DA1
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DA1#FFFFFF#000000##FFFFFF
##313DA11.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313da1;
/* rgb */ color: rgb(49, 61, 161);
/* oklch */ color: oklch(41.5% 0.161 272.1);
Tailwind
colors: {
  custom: {
    50: '#7872be',
    500: '#313da1',
    950: '#000000',
  },
}
SCSS
$custom: #313da1;
$custom-light: #7872be;
$custom-dark: #000000;
JSON
{
  "hex": "#313da1",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 161
  },
  "hsl": {
    "h": 233.571,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41497,
    "c": 0.16065,
    "h": 272.1
  },
  "luminance": 0.06564
}

Semantic roles & 50–950 ramp

primary
#313DA1
secondary
#BEB570
accent
#CD4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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