#31388F#31388F

#31388F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.142 H 274.2°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#31388F
RGBrgb(49, 56, 143)
HSLhsl(236, 49%, 38%)
HSVhsv(236, 66%, 56%)
CMYKcmyk(65.7%, 60.8%, 0%, 43.9%)
CIE-LABlab(28.02, 26.03, -49.19)
CIE-LCHlch(28.02, 55.65, 297.89°)
OKLaboklab(38.98% 0.0105 -0.1416)
OKLCHoklch(38.98% 0.142 274.2)
XYZxyz(7.6371, 5.4638, 26.6334)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31388F #8F8831
analogous
#31678F #31388F #59318F
triadic
#31388F #8F3138 #388F31
tetradic
#31388F #8F3167 #8F8831 #318F59
square
#31388F #8F3167 #8F8831 #318F59
split-complementary
#31388F #8F5931 #678F31
monochromatic
#121434 #212661 #31388F #414ABD #6D74CD

Accessibility & contrast

On white

10.03
#31388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#31388F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31388F
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31388F#FFFFFF#000000##FFFFFF
##31388F1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#004D5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31388f;
/* rgb */ color: rgb(49, 56, 143);
/* oklch */ color: oklch(39.0% 0.142 274.2);
Tailwind
colors: {
  custom: {
    50: '#746eb1',
    500: '#31388f',
    950: '#000000',
  },
}
SCSS
$custom: #31388f;
$custom-light: #746eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#31388f",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 235.532,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38982,
    "c": 0.14198,
    "h": 274.2
  },
  "luminance": 0.05464
}

Semantic roles & 50–950 ramp

primary
#31388F
secondary
#B5AF67
accent
#CE4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #31388F

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

Preview Lab → · Contrast checker → · Palette generator →

#31388F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva