#31388A#31388A

#31388A is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.135 H 274.5°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#31388A
RGBrgb(49, 56, 138)
HSLhsl(235, 48%, 37%)
HSVhsv(235, 64%, 54%)
CMYKcmyk(64.5%, 59.4%, 0%, 45.9%)
CIE-LABlab(27.62, 24.21, -46.75)
CIE-LCHlch(27.62, 52.65, 297.38°)
OKLaboklab(38.56% 0.0105 -0.1344)
OKLCHoklch(38.56% 0.135 274.5)
XYZxyz(7.2667, 5.3157, 24.6829)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31388A #8A8331
analogous
#31658A #31388A #57318A
triadic
#31388A #8A3138 #388A31
tetradic
#31388A #8A3165 #8A8331 #318A57
square
#31388A #8A3165 #8A8331 #318A57
split-complementary
#31388A #8A5731 #658A31
monochromatic
#111330 #21265D #31388A #414AB7 #6B72CA

Accessibility & contrast

On white

10.18
#31388A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#31388A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31388A
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31388A#FFFFFF#000000##FFFFFF
##31388A1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31388a;
/* rgb */ color: rgb(49, 56, 138);
/* oklch */ color: oklch(38.6% 0.135 274.5);
Tailwind
colors: {
  custom: {
    50: '#736ead',
    500: '#31388a',
    950: '#000000',
  },
}
SCSS
$custom: #31388a;
$custom-light: #736ead;
$custom-dark: #000000;
JSON
{
  "hex": "#31388a",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 138
  },
  "hsl": {
    "h": 235.281,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38558,
    "c": 0.13483,
    "h": 274.5
  },
  "luminance": 0.05316
}

Semantic roles & 50–950 ramp

primary
#31388A
secondary
#B2AC65
accent
#CD51D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31388A

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

Preview Lab → · Contrast checker → · Palette generator →

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