#31407D#31407D

#31407D is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.104 H 270.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#31407D
RGBrgb(49, 64, 125)
HSLhsl(228, 44%, 34%)
HSVhsv(228, 61%, 49%)
CMYKcmyk(60.8%, 48.8%, 0%, 51%)
CIE-LABlab(28.90, 14.03, -36.57)
CIE-LCHlch(28.90, 39.17, 290.99°)
OKLaboklab(39.23% 0.001 -0.1044)
OKLCHoklch(39.23% 0.104 270.6)
XYZxyz(6.8005, 5.7999, 20.1592)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31407D #7D6E31
analogous
#31667D #31407D #48317D
triadic
#31407D #7D3140 #407D31
tetradic
#31407D #7D3166 #7D6E31 #317D48
square
#31407D #7D3166 #7D6E31 #317D48
split-complementary
#31407D #7D4831 #667D31
monochromatic
#0F1325 #202951 #31407D #4257A9 #6678C3

Accessibility & contrast

On white

9.72
#31407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#31407D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31407D
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31407D#FFFFFF#000000##FFFFFF
##31407D1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#17417C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #31407d;
/* rgb */ color: rgb(49, 64, 125);
/* oklch */ color: oklch(39.2% 0.104 270.6);
Tailwind
colors: {
  custom: {
    50: '#7074a3',
    500: '#31407d',
    950: '#000000',
  },
}
SCSS
$custom: #31407d;
$custom-light: #7074a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31407d",
  "rgb": {
    "r": 49,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 228.158,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39226,
    "c": 0.1044,
    "h": 270.6
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#31407D
secondary
#AA9B60
accent
#BA54D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #31407D

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

Preview Lab → · Contrast checker → · Palette generator →

#31407D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva