#31458D#31458D

#31458D is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.5% C 0.122 H 268.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#31458D
RGBrgb(49, 69, 141)
HSLhsl(227, 48%, 37%)
HSVhsv(227, 65%, 55%)
CMYKcmyk(65.2%, 51.1%, 0%, 44.7%)
CIE-LABlab(31.42, 16.54, -42.45)
CIE-LCHlch(31.42, 45.56, 291.29°)
OKLaboklab(41.49% -0.0023 -0.1216)
OKLCHoklch(41.49% 0.122 268.9)
XYZxyz(8.2008, 6.8316, 26.0806)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31458D #8D7931
analogous
#31738D #31458D #4B318D
triadic
#31458D #8D3145 #458D31
tetradic
#31458D #8D3173 #8D7931 #318D4B
square
#31458D #8D3173 #8D7931 #318D4B
split-complementary
#31458D #8D4B31 #738D31
monochromatic
#111932 #212F60 #31458D #415BBA #6C81CC

Accessibility & contrast

On white

8.87
#31458D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#31458D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31458D
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31458D#FFFFFF#000000##FFFFFF
##31458D1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4E90
Deuteranopia (green-blind)
#06468C
Tritanopia (blue-blind)
#005662
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31458d;
/* rgb */ color: rgb(49, 69, 141);
/* oklch */ color: oklch(41.5% 0.122 268.9);
Tailwind
colors: {
  custom: {
    50: '#7378af',
    500: '#31458d',
    950: '#000000',
  },
}
SCSS
$custom: #31458d;
$custom-light: #7378af;
$custom-dark: #000000;
JSON
{
  "hex": "#31458d",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 141
  },
  "hsl": {
    "h": 226.957,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41487,
    "c": 0.12162,
    "h": 268.9
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#31458D
secondary
#B4A366
accent
#BA50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31458D

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

Preview Lab → · Contrast checker → · Palette generator →

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