#313DA0#313DA0

#313DA0 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.4% C 0.159 H 272.1°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#313DA0
RGBrgb(49, 61, 160)
HSLhsl(234, 53%, 41%)
HSVhsv(234, 69%, 63%)
CMYKcmyk(69.4%, 61.9%, 0%, 37.3%)
CIE-LABlab(30.71, 28.90, -55.19)
CIE-LCHlch(30.71, 62.30, 297.64°)
OKLaboklab(41.41% 0.0059 -0.1592)
OKLCHoklch(41.41% 0.159 272.1)
XYZxyz(9.2784, 6.5276, 34.0219)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DA0 #A09431
analogous
#3174A0 #313DA0 #5D31A0
triadic
#313DA0 #A0313D #3DA031
tetradic
#313DA0 #A03174 #A09431 #31A05D
square
#313DA0 #A03174 #A09431 #31A05D
split-complementary
#313DA0 #A05D31 #74A031
monochromatic
#141942 #232B71 #313DA0 #4755C7 #7681D5

Accessibility & contrast

On white

9.11
#313DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313DA0
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DA0#FFFFFF#000000##FFFFFF
##313DA01.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313da0;
/* rgb */ color: rgb(49, 61, 160);
/* oklch */ color: oklch(41.4% 0.159 272.1);
Tailwind
colors: {
  custom: {
    50: '#7872bd',
    500: '#313da0',
    950: '#000000',
  },
}
SCSS
$custom: #313da0;
$custom-light: #7872bd;
$custom-dark: #000000;
JSON
{
  "hex": "#313da0",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 160
  },
  "hsl": {
    "h": 233.514,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41409,
    "c": 0.15927,
    "h": 272.1
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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