#313EAC#313EAC

#313EAC is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.174 H 271.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#313EAC
RGBrgb(49, 62, 172)
HSLhsl(234, 56%, 43%)
HSVhsv(234, 72%, 67%)
CMYKcmyk(71.5%, 64%, 0%, 32.5%)
CIE-LABlab(31.98, 32.60, -60.32)
CIE-LCHlch(31.98, 68.57, 298.39°)
OKLaboklab(42.66% 0.0047 -0.1742)
OKLCHoklch(42.66% 0.174 271.5)
XYZxyz(10.4331, 7.0757, 39.8376)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EAC #AC9F31
analogous
#317BAC #313EAC #6231AC
triadic
#313EAC #AC313E #3EAC31
tetradic
#313EAC #AC317B #AC9F31 #31AC62
square
#313EAC #AC317B #AC9F31 #31AC62
split-complementary
#313EAC #AC6231 #7BAC31
monochromatic
#161C4D #232D7C #313EAC #4E5BCC #7D87DA

Accessibility & contrast

On white

8.69
#313EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#313EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EAC
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EAC#FFFFFF#000000##FFFFFF
##313EAC1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#005A6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313eac;
/* rgb */ color: rgb(49, 62, 172);
/* oklch */ color: oklch(42.7% 0.174 271.5);
Tailwind
colors: {
  custom: {
    50: '#7a73c6',
    500: '#313eac',
    950: '#000000',
  },
}
SCSS
$custom: #313eac;
$custom-light: #7a73c6;
$custom-dark: #000000;
JSON
{
  "hex": "#313eac",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 172
  },
  "hsl": {
    "h": 233.659,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42663,
    "c": 0.17428,
    "h": 271.5
  },
  "luminance": 0.07077
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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