#313472#313472

#313472 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.105 H 277.6°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#313472
RGBrgb(49, 52, 114)
HSLhsl(237, 40%, 32%)
HSVhsv(237, 57%, 45%)
CMYKcmyk(57%, 54.4%, 0%, 55.3%)
CIE-LABlab(24.71, 18.27, -36.35)
CIE-LCHlch(24.71, 40.68, 296.69°)
OKLaboklab(35.82% 0.0139 -0.1039)
OKLCHoklch(35.82% 0.105 277.6)
XYZxyz(5.5309, 4.3235, 16.4594)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313472 #726F31
analogous
#315572 #313472 #4F3172
triadic
#313472 #723134 #347231
tetradic
#313472 #723155 #726F31 #31724F
square
#313472 #723155 #726F31 #31724F
split-complementary
#313472 #724F31 #557231
monochromatic
#0C0D1C #1F2047 #313472 #43489D #6266BB

Accessibility & contrast

On white

11.26
#313472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#313472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313472
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313472#FFFFFF#000000##FFFFFF
##3134721.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D74
Deuteranopia (green-blind)
#083871
Tritanopia (blue-blind)
#12424D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313472;
/* rgb */ color: rgb(49, 52, 114);
/* oklch */ color: oklch(35.8% 0.105 277.6);
Tailwind
colors: {
  custom: {
    50: '#6f6b9b',
    500: '#313472',
    950: '#000000',
  },
}
SCSS
$custom: #313472;
$custom-light: #6f6b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#313472",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 114
  },
  "hsl": {
    "h": 237.231,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35815,
    "c": 0.10478,
    "h": 277.6
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#313472
secondary
#A3A05C
accent
#CA58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313472

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

Preview Lab → · Contrast checker → · Palette generator →

#313472 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva