#313EAA#313EAA

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

Color values

HEX#313EAA
RGBrgb(49, 62, 170)
HSLhsl(234, 55%, 43%)
HSVhsv(234, 71%, 67%)
CMYKcmyk(71.2%, 63.5%, 0%, 33.3%)
CIE-LABlab(31.81, 31.88, -59.41)
CIE-LCHlch(31.81, 67.42, 298.22°)
OKLaboklab(42.48% 0.0048 -0.1715)
OKLCHoklch(42.48% 0.172 271.6)
XYZxyz(10.2425, 6.9995, 38.8337)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EAA #AA9D31
analogous
#317AAA #313EAA #6131AA
triadic
#313EAA #AA313E #3EAA31
tetradic
#313EAA #AA317A #AA9D31 #31AA61
square
#313EAA #AA317A #AA9D31 #31AA61
split-complementary
#313EAA #AA6131 #7AAA31
monochromatic
#161B4B #232D7A #313EAA #4D5ACC #7C86D9

Accessibility & contrast

On white

8.75
#313EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#313EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EAA
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EAA#FFFFFF#000000##FFFFFF
##313EAA1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313eaa;
/* rgb */ color: rgb(49, 62, 170);
/* oklch */ color: oklch(42.5% 0.172 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a73c4',
    500: '#313eaa',
    950: '#000000',
  },
}
SCSS
$custom: #313eaa;
$custom-light: #7a73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#313eaa",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 170
  },
  "hsl": {
    "h": 233.554,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42482,
    "c": 0.17162,
    "h": 271.6
  },
  "luminance": 0.07
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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