#31437C#31437C

#31437C is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.8% C 0.099 H 268.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#31437C
RGBrgb(49, 67, 124)
HSLhsl(226, 43%, 34%)
HSVhsv(226, 60%, 49%)
CMYKcmyk(60.5%, 46%, 0%, 51.4%)
CIE-LABlab(29.72, 11.63, -34.64)
CIE-LCHlch(29.72, 36.54, 288.55°)
OKLaboklab(39.83% -0.0026 -0.0987)
OKLCHoklch(39.83% 0.099 268.5)
XYZxyz(6.9106, 6.1220, 19.8824)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31437C #7C6A31
analogous
#31697C #31437C #45317C
triadic
#31437C #7C3143 #437C31
tetradic
#31437C #7C3169 #7C6A31 #317C45
square
#31437C #7C3169 #7C6A31 #317C45
split-complementary
#31437C #7C4531 #697C31
monochromatic
#0E1424 #202B50 #31437C #425BA8 #657CC2

Accessibility & contrast

On white

9.44
#31437C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#31437C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31437C
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31437C#FFFFFF#000000##FFFFFF
##31437C1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7E
Deuteranopia (green-blind)
#1F437B
Tritanopia (blue-blind)
#005059
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #31437c;
/* rgb */ color: rgb(49, 67, 124);
/* oklch */ color: oklch(39.8% 0.099 268.5);
Tailwind
colors: {
  custom: {
    50: '#7076a2',
    500: '#31437c',
    950: '#000000',
  },
}
SCSS
$custom: #31437c;
$custom-light: #7076a2;
$custom-dark: #000000;
JSON
{
  "hex": "#31437c",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 124
  },
  "hsl": {
    "h": 225.6,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39828,
    "c": 0.09872,
    "h": 268.5
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#31437C
secondary
#AA985F
accent
#B555D3
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #31437C

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

Preview Lab → · Contrast checker → · Palette generator →

#31437C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva