#31467F#31467F

#31467F is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.099 H 266.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#31467F
RGBrgb(49, 70, 127)
HSLhsl(224, 44%, 35%)
HSVhsv(224, 61%, 50%)
CMYKcmyk(61.4%, 44.9%, 0%, 50.2%)
CIE-LABlab(30.80, 10.70, -34.79)
CIE-LCHlch(30.80, 36.40, 287.09°)
OKLaboklab(40.72% -0.0056 -0.0991)
OKLCHoklch(40.72% 0.099 266.8)
XYZxyz(7.2862, 6.5650, 20.9578)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31467F #7F6A31
analogous
#316D7F #31467F #43317F
triadic
#31467F #7F3146 #467F31
tetradic
#31467F #7F316D #7F6A31 #317F43
square
#31467F #7F316D #7F6A31 #317F43
split-complementary
#31467F #7F4331 #6D7F31
monochromatic
#0F1527 #202E53 #31467F #425EAB #6680C4

Accessibility & contrast

On white

9.08
#31467F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#31467F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31467F
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31467F#FFFFFF#000000##FFFFFF
##31467F1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4C81
Deuteranopia (green-blind)
#22457E
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31467f;
/* rgb */ color: rgb(49, 70, 127);
/* oklch */ color: oklch(40.7% 0.099 266.8);
Tailwind
colors: {
  custom: {
    50: '#7079a4',
    500: '#31467f',
    950: '#000000',
  },
}
SCSS
$custom: #31467f;
$custom-light: #7079a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31467f",
  "rgb": {
    "r": 49,
    "g": 70,
    "b": 127
  },
  "hsl": {
    "h": 223.846,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40715,
    "c": 0.09925,
    "h": 266.8
  },
  "luminance": 0.06566
}

Semantic roles & 50–950 ramp

primary
#31467F
secondary
#AB9760
accent
#B254D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #31467F

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

Preview Lab → · Contrast checker → · Palette generator →

#31467F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva