#313A72#313A72

#313A72 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.1% C 0.096 H 273.9°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#313A72
RGBrgb(49, 58, 114)
HSLhsl(232, 40%, 32%)
HSVhsv(232, 57%, 45%)
CMYKcmyk(57%, 49.1%, 0%, 55.3%)
CIE-LABlab(26.43, 14.14, -33.59)
CIE-LCHlch(26.43, 36.45, 292.83°)
OKLaboklab(37.11% 0.0066 -0.0957)
OKLCHoklch(37.11% 0.096 273.9)
XYZxyz(5.8160, 4.8936, 16.5544)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A72 #726931
analogous
#315B72 #313A72 #493172
triadic
#313A72 #72313A #3A7231
tetradic
#313A72 #72315B #726931 #317249
square
#313A72 #72315B #726931 #317249
split-complementary
#313A72 #724931 #5B7231
monochromatic
#0C0E1C #1F2447 #313A72 #43509D #626EBB

Accessibility & contrast

On white

10.61
#313A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A72
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A72#FFFFFF#000000##FFFFFF
##313A721.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204174
Deuteranopia (green-blind)
#183C71
Tritanopia (blue-blind)
#104650
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313a72;
/* rgb */ color: rgb(49, 58, 114);
/* oklch */ color: oklch(37.1% 0.096 273.9);
Tailwind
colors: {
  custom: {
    50: '#6f6f9b',
    500: '#313a72',
    950: '#000000',
  },
}
SCSS
$custom: #313a72;
$custom-light: #6f6f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#313a72",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 114
  },
  "hsl": {
    "h": 231.692,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37111,
    "c": 0.09593,
    "h": 273.9
  },
  "luminance": 0.04894
}

Semantic roles & 50–950 ramp

primary
#313A72
secondary
#A3995C
accent
#BF58D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313A72

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

Preview Lab → · Contrast checker → · Palette generator →

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