#31368A#31368A

#31368A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.138 H 275.2°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#31368A
RGBrgb(49, 54, 138)
HSLhsl(237, 48%, 37%)
HSVhsv(237, 64%, 54%)
CMYKcmyk(64.5%, 60.9%, 0%, 45.9%)
CIE-LABlab(27.09, 25.55, -47.60)
CIE-LCHlch(27.09, 54.03, 298.22°)
OKLaboklab(38.17% 0.0124 -0.1369)
OKLCHoklch(38.17% 0.138 275.2)
XYZxyz(7.1717, 5.1257, 24.6513)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31368A #8A8531
analogous
#31638A #31368A #59318A
triadic
#31368A #8A3136 #368A31
tetradic
#31368A #8A3163 #8A8531 #318A59
square
#31368A #8A3163 #8A8531 #318A59
split-complementary
#31368A #8A5931 #638A31
monochromatic
#111330 #21245D #31368A #4148B7 #6B70CA

Accessibility & contrast

On white

10.37
#31368A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#31368A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31368A
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31368A#FFFFFF#000000##FFFFFF
##31368A1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31368a;
/* rgb */ color: rgb(49, 54, 138);
/* oklch */ color: oklch(38.2% 0.138 275.2);
Tailwind
colors: {
  custom: {
    50: '#746dad',
    500: '#31368a',
    950: '#000000',
  },
}
SCSS
$custom: #31368a;
$custom-light: #746dad;
$custom-dark: #000000;
JSON
{
  "hex": "#31368a",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 138
  },
  "hsl": {
    "h": 236.629,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38168,
    "c": 0.13751,
    "h": 275.2
  },
  "luminance": 0.05126
}

Semantic roles & 50–950 ramp

primary
#31368A
secondary
#B2AE65
accent
#D051D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31368A

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

Preview Lab → · Contrast checker → · Palette generator →

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