#31438D#31438D

#31438D is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.1% C 0.124 H 269.9°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#31438D
RGBrgb(49, 67, 141)
HSLhsl(228, 48%, 37%)
HSVhsv(228, 65%, 55%)
CMYKcmyk(65.2%, 52.5%, 0%, 44.7%)
CIE-LABlab(30.85, 17.89, -43.36)
CIE-LCHlch(30.85, 46.91, 292.42°)
OKLaboklab(41.06% -0.0003 -0.1243)
OKLCHoklch(41.06% 0.124 269.9)
XYZxyz(8.0799, 6.5897, 26.0403)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31438D #8D7B31
analogous
#31718D #31438D #4D318D
triadic
#31438D #8D3143 #438D31
tetradic
#31438D #8D3171 #8D7B31 #318D4D
square
#31438D #8D3171 #8D7B31 #318D4D
split-complementary
#31438D #8D4D31 #718D31
monochromatic
#111832 #212D60 #31438D #4159BA #6C7FCC

Accessibility & contrast

On white

9.06
#31438D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#31438D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31438D
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31438D#FFFFFF#000000##FFFFFF
##31438D1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31438d;
/* rgb */ color: rgb(49, 67, 141);
/* oklch */ color: oklch(41.1% 0.124 269.9);
Tailwind
colors: {
  custom: {
    50: '#7376af',
    500: '#31438d',
    950: '#000000',
  },
}
SCSS
$custom: #31438d;
$custom-light: #7376af;
$custom-dark: #000000;
JSON
{
  "hex": "#31438d",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 141
  },
  "hsl": {
    "h": 228.261,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41058,
    "c": 0.12432,
    "h": 269.9
  },
  "luminance": 0.0659
}

Semantic roles & 50–950 ramp

primary
#31438D
secondary
#B4A466
accent
#BD50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31438D

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

Preview Lab → · Contrast checker → · Palette generator →

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