#31438E#31438E

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

Color values

HEX#31438E
RGBrgb(49, 67, 142)
HSLhsl(228, 49%, 37%)
HSVhsv(228, 65%, 56%)
CMYKcmyk(65.5%, 52.8%, 0%, 44.3%)
CIE-LABlab(30.92, 18.26, -43.86)
CIE-LCHlch(30.92, 47.51, 292.61°)
OKLaboklab(41.13% -0.0002 -0.1258)
OKLCHoklch(41.13% 0.126 269.9)
XYZxyz(8.1546, 6.6196, 26.4339)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31438E #8E7C31
analogous
#31728E #31438E #4D318E
triadic
#31438E #8E3143 #438E31
tetradic
#31438E #8E3172 #8E7C31 #318E4D
square
#31438E #8E3172 #8E7C31 #318E4D
split-complementary
#31438E #8E4D31 #728E31
monochromatic
#121833 #212E61 #31438E #4158BB #6D7FCD

Accessibility & contrast

On white

9.04
#31438E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31438E
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31438E#FFFFFF#000000##FFFFFF
##31438E1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174D91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31438e;
/* rgb */ color: rgb(49, 67, 142);
/* oklch */ color: oklch(41.1% 0.126 269.9);
Tailwind
colors: {
  custom: {
    50: '#7376b0',
    500: '#31438e',
    950: '#000000',
  },
}
SCSS
$custom: #31438e;
$custom-light: #7376b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31438e",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 142
  },
  "hsl": {
    "h": 228.387,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41134,
    "c": 0.12579,
    "h": 269.9
  },
  "luminance": 0.0662
}

Semantic roles & 50–950 ramp

primary
#31438E
secondary
#B4A567
accent
#BE50D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31438E

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

Preview Lab → · Contrast checker → · Palette generator →

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