#31417C#31417C

#31417C is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.101 H 269.8°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#31417C
RGBrgb(49, 65, 124)
HSLhsl(227, 43%, 34%)
HSVhsv(227, 60%, 49%)
CMYKcmyk(60.5%, 47.6%, 0%, 51.4%)
CIE-LABlab(29.13, 12.98, -35.58)
CIE-LCHlch(29.13, 37.88, 290.05°)
OKLaboklab(39.38% -0.0003 -0.1015)
OKLCHoklch(39.38% 0.101 269.8)
XYZxyz(6.7938, 5.8883, 19.8434)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31417C #7C6C31
analogous
#31677C #31417C #47317C
triadic
#31417C #7C3141 #417C31
tetradic
#31417C #7C3167 #7C6C31 #317C47
square
#31417C #7C3167 #7C6C31 #317C47
split-complementary
#31417C #7C4731 #677C31
monochromatic
#0E1324 #202A50 #31417C #4258A8 #6579C2

Accessibility & contrast

On white

9.64
#31417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#31417C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31417C
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31417C#FFFFFF#000000##FFFFFF
##31417C1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487E
Deuteranopia (green-blind)
#1B427B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31417c;
/* rgb */ color: rgb(49, 65, 124);
/* oklch */ color: oklch(39.4% 0.101 269.8);
Tailwind
colors: {
  custom: {
    50: '#7075a2',
    500: '#31417c',
    950: '#000000',
  },
}
SCSS
$custom: #31417c;
$custom-light: #7075a2;
$custom-dark: #000000;
JSON
{
  "hex": "#31417c",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 227.2,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39378,
    "c": 0.10147,
    "h": 269.8
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#31417C
secondary
#AA9A5F
accent
#B855D3
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #31417C

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

Preview Lab → · Contrast checker → · Palette generator →

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