#313EB1#313EB1

#313EB1 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.181 H 271.4°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#313EB1
RGBrgb(49, 62, 177)
HSLhsl(234, 57%, 44%)
HSVhsv(234, 72%, 69%)
CMYKcmyk(72.3%, 65%, 0%, 30.6%)
CIE-LABlab(32.42, 34.39, -62.59)
CIE-LCHlch(32.42, 71.42, 298.79°)
OKLaboklab(43.12% 0.0044 -0.1809)
OKLCHoklch(43.12% 0.181 271.4)
XYZxyz(10.9224, 7.2714, 42.4144)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EB1 #B1A431
analogous
#317EB1 #313EB1 #6431B1
triadic
#313EB1 #B1313E #3EB131
tetradic
#313EB1 #B1317E #B1A431 #31B164
square
#313EB1 #B1317E #B1A431 #31B164
split-complementary
#313EB1 #B16431 #7EB131
monochromatic
#161C51 #242D81 #313EB1 #515DCF #808ADC

Accessibility & contrast

On white

8.56
#313EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#313EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EB1
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EB1#FFFFFF#000000##FFFFFF
##313EB11.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313eb1;
/* rgb */ color: rgb(49, 62, 177);
/* oklch */ color: oklch(43.1% 0.181 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b73c9',
    500: '#313eb1',
    950: '#000000',
  },
}
SCSS
$custom: #313eb1;
$custom-light: #7b73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313eb1",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 177
  },
  "hsl": {
    "h": 233.906,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4312,
    "c": 0.18091,
    "h": 271.4
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#313EB1
secondary
#C5BD79
accent
#D048E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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