#31448E#31448E

#31448E is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.3% C 0.124 H 269.5°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#31448E
RGBrgb(49, 68, 142)
HSLhsl(228, 49%, 37%)
HSVhsv(228, 65%, 56%)
CMYKcmyk(65.5%, 52.1%, 0%, 44.3%)
CIE-LABlab(31.21, 17.59, -43.41)
CIE-LCHlch(31.21, 46.84, 292.06°)
OKLaboklab(41.35% -0.0012 -0.1244)
OKLCHoklch(41.35% 0.124 269.5)
XYZxyz(8.2146, 6.7395, 26.4539)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31448E #8E7B31
analogous
#31728E #31448E #4D318E
triadic
#31448E #8E3144 #448E31
tetradic
#31448E #8E3172 #8E7B31 #318E4D
square
#31448E #8E3172 #8E7B31 #318E4D
split-complementary
#31448E #8E4D31 #728E31
monochromatic
#121833 #212E61 #31448E #415ABB #6D80CD

Accessibility & contrast

On white

8.94
#31448E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#31448E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31448E
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31448E#FFFFFF#000000##FFFFFF
##31448E1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31448e;
/* rgb */ color: rgb(49, 68, 142);
/* oklch */ color: oklch(41.3% 0.124 269.5);
Tailwind
colors: {
  custom: {
    50: '#7377b0',
    500: '#31448e',
    950: '#000000',
  },
}
SCSS
$custom: #31448e;
$custom-light: #7377b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31448e",
  "rgb": {
    "r": 49,
    "g": 68,
    "b": 142
  },
  "hsl": {
    "h": 227.742,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41347,
    "c": 0.12445,
    "h": 269.5
  },
  "luminance": 0.0674
}

Semantic roles & 50–950 ramp

primary
#31448E
secondary
#B4A467
accent
#BC50D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31448E

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

Preview Lab → · Contrast checker → · Palette generator →

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