#31459B#31459B

#31459B is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.142 H 269.6°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#31459B
RGBrgb(49, 69, 155)
HSLhsl(229, 52%, 40%)
HSVhsv(229, 68%, 61%)
CMYKcmyk(68.4%, 55.5%, 0%, 39.2%)
CIE-LABlab(32.42, 21.75, -49.37)
CIE-LCHlch(32.42, 53.95, 293.78°)
OKLaboklab(42.57% -0.0011 -0.142)
OKLCHoklch(42.57% 0.142 269.6)
XYZxyz(9.3091, 7.2749, 31.9176)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31459B #9B8731
analogous
#317A9B #31459B #52319B
triadic
#31459B #9B3145 #459B31
tetradic
#31459B #9B317A #9B8731 #319B52
square
#31459B #9B317A #9B8731 #319B52
split-complementary
#31459B #9B5231 #7A9B31
monochromatic
#141C3E #22306D #31459B #455DC4 #7386D3

Accessibility & contrast

On white

8.55
#31459B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#31459B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31459B
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31459B#FFFFFF#000000##FFFFFF
##31459B1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01519E
Deuteranopia (green-blind)
#004899
Tritanopia (blue-blind)
#005A69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #31459b;
/* rgb */ color: rgb(49, 69, 155);
/* oklch */ color: oklch(42.6% 0.142 269.6);
Tailwind
colors: {
  custom: {
    50: '#7678b9',
    500: '#31459b',
    950: '#000000',
  },
}
SCSS
$custom: #31459b;
$custom-light: #7678b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31459b",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 155
  },
  "hsl": {
    "h": 228.679,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.42566,
    "c": 0.14196,
    "h": 269.6
  },
  "luminance": 0.07276
}

Semantic roles & 50–950 ramp

primary
#31459B
secondary
#BBAC6D
accent
#C04CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #31459B

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

Preview Lab → · Contrast checker → · Palette generator →

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