#31458B#31458B

#31458B is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.119 H 268.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#31458B
RGBrgb(49, 69, 139)
HSLhsl(227, 48%, 37%)
HSVhsv(227, 65%, 55%)
CMYKcmyk(64.7%, 50.4%, 0%, 45.5%)
CIE-LABlab(31.28, 15.80, -41.44)
CIE-LCHlch(31.28, 44.35, 290.87°)
OKLaboklab(41.34% -0.0026 -0.1186)
OKLCHoklch(41.34% 0.119 268.8)
XYZxyz(8.0534, 6.7726, 25.3039)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31458B #8B7731
analogous
#31728B #31458B #4A318B
triadic
#31458B #8B3145 #458B31
tetradic
#31458B #8B3172 #8B7731 #318B4A
square
#31458B #8B3172 #8B7731 #318B4A
split-complementary
#31458B #8B4A31 #728B31
monochromatic
#111831 #212F5E #31458B #415BB8 #6B81CB

Accessibility & contrast

On white

8.92
#31458B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#31458B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31458B
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31458B#FFFFFF#000000##FFFFFF
##31458B1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8E
Deuteranopia (green-blind)
#0C468A
Tritanopia (blue-blind)
#005561
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31458b;
/* rgb */ color: rgb(49, 69, 139);
/* oklch */ color: oklch(41.3% 0.119 268.8);
Tailwind
colors: {
  custom: {
    50: '#7378ad',
    500: '#31458b',
    950: '#000000',
  },
}
SCSS
$custom: #31458b;
$custom-light: #7378ad;
$custom-dark: #000000;
JSON
{
  "hex": "#31458b",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 139
  },
  "hsl": {
    "h": 226.667,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41339,
    "c": 0.11866,
    "h": 268.8
  },
  "luminance": 0.06773
}

Semantic roles & 50–950 ramp

primary
#31458B
secondary
#B2A165
accent
#B950D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31458B

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

Preview Lab → · Contrast checker → · Palette generator →

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