#31499E#31499E

#31499E is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.6% C 0.141 H 268.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#31499E
RGBrgb(49, 73, 158)
HSLhsl(227, 53%, 41%)
HSVhsv(227, 69%, 62%)
CMYKcmyk(69%, 53.8%, 0%, 38%)
CIE-LABlab(33.74, 20.19, -49.05)
CIE-LCHlch(33.74, 53.04, 292.38°)
OKLaboklab(43.63% -0.0045 -0.141)
OKLCHoklch(43.63% 0.141 268.2)
XYZxyz(9.8186, 7.8857, 33.3458)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31499E #9E8631
analogous
#317F9E #31499E #4F319E
triadic
#31499E #9E3149 #499E31
tetradic
#31499E #9E317F #9E8631 #319E4F
square
#31499E #9E317F #9E8631 #319E4F
split-complementary
#31499E #9E4F31 #7F9E31
monochromatic
#141E41 #23336F #31499E #4662C6 #758AD4

Accessibility & contrast

On white

8.15
#31499E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#31499E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31499E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31499E#FFFFFF#000000##FFFFFF
##31499E1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F55A1
Deuteranopia (green-blind)
#004B9C
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #31499e;
/* rgb */ color: rgb(49, 73, 158);
/* oklch */ color: oklch(43.6% 0.141 268.2);
Tailwind
colors: {
  custom: {
    50: '#767bbb',
    500: '#31499e',
    950: '#000000',
  },
}
SCSS
$custom: #31499e;
$custom-light: #767bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#31499e",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 158
  },
  "hsl": {
    "h": 226.789,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4363,
    "c": 0.14103,
    "h": 268.2
  },
  "luminance": 0.07887
}

Semantic roles & 50–950 ramp

primary
#31499E
secondary
#BCAB6E
accent
#BC4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #31499E

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

Preview Lab → · Contrast checker → · Palette generator →

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