#31548E#31548E

#31548E is a dark, moderate blue. Relative luminance 0.089; OKLCH L 44.9% C 0.104 H 260.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#31548E
RGBrgb(49, 84, 142)
HSLhsl(217, 49%, 37%)
HSVhsv(217, 65%, 56%)
CMYKcmyk(65.5%, 40.8%, 0%, 44.3%)
CIE-LABlab(35.88, 6.93, -35.93)
CIE-LCHlch(35.88, 36.59, 280.92°)
OKLaboklab(44.93% -0.0181 -0.1022)
OKLCHoklch(44.93% 0.104 260)
XYZxyz(9.3177, 8.9457, 26.8216)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31548E #8E6B31
analogous
#31838E #31548E #3C318E
triadic
#31548E #8E3154 #548E31
tetradic
#31548E #8E3183 #8E6B31 #318E3C
square
#31548E #8E3183 #8E6B31 #318E3C
split-complementary
#31548E #8E3C31 #838E31
monochromatic
#121E33 #213961 #31548E #416FBB #6D91CD

Accessibility & contrast

On white

7.53
#31548E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#31548E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31548E
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31548E#FFFFFF#000000##FFFFFF
##31548E1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5990
Deuteranopia (green-blind)
#2D508D
Tritanopia (blue-blind)
#00616A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #31548e;
/* rgb */ color: rgb(49, 84, 142);
/* oklch */ color: oklch(44.9% 0.104 260.0);
Tailwind
colors: {
  custom: {
    50: '#7383af',
    500: '#31548e',
    950: '#000000',
  },
}
SCSS
$custom: #31548e;
$custom-light: #7383af;
$custom-dark: #000000;
JSON
{
  "hex": "#31548e",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 142
  },
  "hsl": {
    "h": 217.419,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4493,
    "c": 0.10382,
    "h": 260
  },
  "luminance": 0.08947
}

Semantic roles & 50–950 ramp

primary
#31548E
secondary
#B49767
accent
#A550D8
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31548E

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

Preview Lab → · Contrast checker → · Palette generator →

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