#31418D#31418D

#31418D is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.6% C 0.127 H 270.8°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#31418D
RGBrgb(49, 65, 141)
HSLhsl(230, 48%, 37%)
HSVhsv(230, 65%, 55%)
CMYKcmyk(65.2%, 53.9%, 0%, 44.7%)
CIE-LABlab(30.29, 19.24, -44.27)
CIE-LCHlch(30.29, 48.27, 293.50°)
OKLaboklab(40.64% 0.0018 -0.127)
OKLCHoklch(40.64% 0.127 270.8)
XYZxyz(7.9630, 6.3560, 26.0013)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31418D #8D7D31
analogous
#316F8D #31418D #4F318D
triadic
#31418D #8D3141 #418D31
tetradic
#31418D #8D316F #8D7D31 #318D4F
square
#31418D #8D316F #8D7D31 #318D4F
split-complementary
#31418D #8D4F31 #6F8D31
monochromatic
#111732 #212C60 #31418D #4156BA #6C7DCC

Accessibility & contrast

On white

9.25
#31418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#31418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31418D
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31418D#FFFFFF#000000##FFFFFF
##31418D1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31418d;
/* rgb */ color: rgb(49, 65, 141);
/* oklch */ color: oklch(40.6% 0.127 270.8);
Tailwind
colors: {
  custom: {
    50: '#7375af',
    500: '#31418d',
    950: '#000000',
  },
}
SCSS
$custom: #31418d;
$custom-light: #7375af;
$custom-dark: #000000;
JSON
{
  "hex": "#31418d",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 229.565,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40635,
    "c": 0.12702,
    "h": 270.8
  },
  "luminance": 0.06357
}

Semantic roles & 50–950 ramp

primary
#31418D
secondary
#B4A666
accent
#C050D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31418D

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

Preview Lab → · Contrast checker → · Palette generator →

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