#31458E#31458E

#31458E is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.6% C 0.123 H 269.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#31458E
RGBrgb(49, 69, 142)
HSLhsl(227, 49%, 37%)
HSVhsv(227, 65%, 56%)
CMYKcmyk(65.5%, 51.4%, 0%, 44.3%)
CIE-LABlab(31.49, 16.91, -42.95)
CIE-LCHlch(31.49, 46.16, 291.49°)
OKLaboklab(41.56% -0.0022 -0.1231)
OKLCHoklch(41.56% 0.123 269)
XYZxyz(8.2756, 6.8615, 26.4742)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31458E #8E7A31
analogous
#31738E #31458E #4C318E
triadic
#31458E #8E3145 #458E31
tetradic
#31458E #8E3173 #8E7A31 #318E4C
square
#31458E #8E3173 #8E7A31 #318E4C
split-complementary
#31458E #8E4C31 #738E31
monochromatic
#121933 #212F61 #31458E #415BBB #6D81CD

Accessibility & contrast

On white

8.85
#31458E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31458E
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31458E#FFFFFF#000000##FFFFFF
##31458E1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4E91
Deuteranopia (green-blind)
#03468C
Tritanopia (blue-blind)
#005663
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31458e;
/* rgb */ color: rgb(49, 69, 142);
/* oklch */ color: oklch(41.6% 0.123 269.0);
Tailwind
colors: {
  custom: {
    50: '#7378b0',
    500: '#31458e',
    950: '#000000',
  },
}
SCSS
$custom: #31458e;
$custom-light: #7378b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31458e",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 142
  },
  "hsl": {
    "h": 227.097,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41562,
    "c": 0.1231,
    "h": 269
  },
  "luminance": 0.06862
}

Semantic roles & 50–950 ramp

primary
#31458E
secondary
#B4A367
accent
#BB50D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31458E

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

Preview Lab → · Contrast checker → · Palette generator →

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