#313EAB#313EAB

#313EAB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.173 H 271.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#313EAB
RGBrgb(49, 62, 171)
HSLhsl(234, 55%, 43%)
HSVhsv(234, 71%, 67%)
CMYKcmyk(71.3%, 63.7%, 0%, 32.9%)
CIE-LABlab(31.89, 32.24, -59.87)
CIE-LCHlch(31.89, 67.99, 298.30°)
OKLaboklab(42.57% 0.0047 -0.1729)
OKLCHoklch(42.57% 0.173 271.6)
XYZxyz(10.3374, 7.0375, 39.3338)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EAB #AB9E31
analogous
#317BAB #313EAB #6131AB
triadic
#313EAB #AB313E #3EAB31
tetradic
#313EAB #AB317B #AB9E31 #31AB61
square
#313EAB #AB317B #AB9E31 #31AB61
split-complementary
#313EAB #AB6131 #7BAB31
monochromatic
#161C4C #232D7B #313EAB #4D5BCC #7D87DA

Accessibility & contrast

On white

8.72
#313EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#313EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EAB
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EAB#FFFFFF#000000##FFFFFF
##313EAB1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313eab;
/* rgb */ color: rgb(49, 62, 171);
/* oklch */ color: oklch(42.6% 0.173 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a73c5',
    500: '#313eab',
    950: '#000000',
  },
}
SCSS
$custom: #313eab;
$custom-light: #7a73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#313eab",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 171
  },
  "hsl": {
    "h": 233.607,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42573,
    "c": 0.17295,
    "h": 271.6
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

primary
#313EAB
secondary
#C2BA75
accent
#CF49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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