#31418E#31418E

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

Color values

HEX#31418E
RGBrgb(49, 65, 142)
HSLhsl(230, 49%, 37%)
HSVhsv(230, 65%, 56%)
CMYKcmyk(65.5%, 54.2%, 0%, 44.3%)
CIE-LABlab(30.37, 19.61, -44.76)
CIE-LCHlch(30.37, 48.87, 293.66°)
OKLaboklab(40.71% 0.0018 -0.1285)
OKLCHoklch(40.71% 0.128 270.8)
XYZxyz(8.0378, 6.3859, 26.3950)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31418E #8E7E31
analogous
#31708E #31418E #4F318E
triadic
#31418E #8E3141 #418E31
tetradic
#31418E #8E3170 #8E7E31 #318E4F
square
#31418E #8E3170 #8E7E31 #318E4F
split-complementary
#31418E #8E4F31 #708E31
monochromatic
#121733 #212C61 #31418E #4156BB #6D7DCD

Accessibility & contrast

On white

9.22
#31418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#31418E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31418E
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31418E#FFFFFF#000000##FFFFFF
##31418E1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31418e;
/* rgb */ color: rgb(49, 65, 142);
/* oklch */ color: oklch(40.7% 0.128 270.8);
Tailwind
colors: {
  custom: {
    50: '#7475b0',
    500: '#31418e',
    950: '#000000',
  },
}
SCSS
$custom: #31418e;
$custom-light: #7475b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31418e",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 229.677,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40712,
    "c": 0.12848,
    "h": 270.8
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#31418E
secondary
#B4A767
accent
#C150D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31418E

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

Preview Lab → · Contrast checker → · Palette generator →

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