#31418F#31418F

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

Color values

HEX#31418F
RGBrgb(49, 65, 143)
HSLhsl(230, 49%, 38%)
HSVhsv(230, 66%, 56%)
CMYKcmyk(65.7%, 54.5%, 0%, 43.9%)
CIE-LABlab(30.44, 19.98, -45.26)
CIE-LCHlch(30.44, 49.48, 293.82°)
OKLaboklab(40.79% 0.0019 -0.1299)
OKLCHoklch(40.79% 0.13 270.8)
XYZxyz(8.1132, 6.4160, 26.7921)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31418F #8F7F31
analogous
#31708F #31418F #50318F
triadic
#31418F #8F3141 #418F31
tetradic
#31418F #8F3170 #8F7F31 #318F50
square
#31418F #8F3170 #8F7F31 #318F50
split-complementary
#31418F #8F5031 #708F31
monochromatic
#121834 #212C61 #31418F #4156BD #6D7ECD

Accessibility & contrast

On white

9.20
#31418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31418F
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31418F#FFFFFF#000000##FFFFFF
##31418F1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4C92
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31418f;
/* rgb */ color: rgb(49, 65, 143);
/* oklch */ color: oklch(40.8% 0.130 270.8);
Tailwind
colors: {
  custom: {
    50: '#7475b0',
    500: '#31418f',
    950: '#000000',
  },
}
SCSS
$custom: #31418f;
$custom-light: #7475b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31418f",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 229.787,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4079,
    "c": 0.12994,
    "h": 270.8
  },
  "luminance": 0.06417
}

Semantic roles & 50–950 ramp

primary
#31418F
secondary
#B5A767
accent
#C14FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #31418F

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

Preview Lab → · Contrast checker → · Palette generator →

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