#31418C#31418C

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

Color values

HEX#31418C
RGBrgb(49, 65, 140)
HSLhsl(229, 48%, 37%)
HSVhsv(229, 65%, 55%)
CMYKcmyk(65%, 53.6%, 0%, 45.1%)
CIE-LABlab(30.22, 18.88, -43.77)
CIE-LCHlch(30.22, 47.66, 293.33°)
OKLaboklab(40.56% 0.0017 -0.1255)
OKLCHoklch(40.56% 0.126 270.8)
XYZxyz(7.8890, 6.3263, 25.6112)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31418C #8C7C31
analogous
#316E8C #31418C #4F318C
triadic
#31418C #8C3141 #418C31
tetradic
#31418C #8C316E #8C7C31 #318C4F
square
#31418C #8C316E #8C7C31 #318C4F
split-complementary
#31418C #8C4F31 #6E8C31
monochromatic
#111731 #212C5F #31418C #4156B9 #6C7DCC

Accessibility & contrast

On white

9.27
#31418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31418C
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31418C#FFFFFF#000000##FFFFFF
##31418C1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31418c;
/* rgb */ color: rgb(49, 65, 140);
/* oklch */ color: oklch(40.6% 0.126 270.8);
Tailwind
colors: {
  custom: {
    50: '#7375ae',
    500: '#31418c',
    950: '#000000',
  },
}
SCSS
$custom: #31418c;
$custom-light: #7375ae;
$custom-dark: #000000;
JSON
{
  "hex": "#31418c",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 229.451,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40557,
    "c": 0.12555,
    "h": 270.8
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31418C

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

Preview Lab → · Contrast checker → · Palette generator →

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