#313372#313372

#313372 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.6% C 0.106 H 278.2°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#313372
RGBrgb(49, 51, 114)
HSLhsl(238, 40%, 32%)
HSVhsv(238, 57%, 45%)
CMYKcmyk(57%, 55.3%, 0%, 55.3%)
CIE-LABlab(24.43, 18.95, -36.79)
CIE-LCHlch(24.43, 41.39, 297.25°)
OKLaboklab(35.6% 0.0151 -0.1052)
OKLCHoklch(35.6% 0.106 278.2)
XYZxyz(5.4868, 4.2352, 16.4447)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313372 #727031
analogous
#315472 #313372 #503172
triadic
#313372 #723133 #337231
tetradic
#313372 #723154 #727031 #317250
square
#313372 #723154 #727031 #317250
split-complementary
#313372 #725031 #547231
monochromatic
#0C0D1C #1F2047 #313372 #43469D #6265BB

Accessibility & contrast

On white

11.37
#313372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#313372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313372
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313372#FFFFFF#000000##FFFFFF
##3133721.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103D74
Deuteranopia (green-blind)
#053771
Tritanopia (blue-blind)
#12414D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313372;
/* rgb */ color: rgb(49, 51, 114);
/* oklch */ color: oklch(35.6% 0.106 278.2);
Tailwind
colors: {
  custom: {
    50: '#6f6a9b',
    500: '#313372',
    950: '#000000',
  },
}
SCSS
$custom: #313372;
$custom-light: #6f6a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#313372",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 114
  },
  "hsl": {
    "h": 238.154,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35605,
    "c": 0.10627,
    "h": 278.2
  },
  "luminance": 0.04236
}

Semantic roles & 50–950 ramp

primary
#313372
secondary
#A3A15C
accent
#CC58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313372

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

Preview Lab → · Contrast checker → · Palette generator →

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