#31368D#31368D

#31368D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.142 H 275.0°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#31368D
RGBrgb(49, 54, 141)
HSLhsl(237, 48%, 37%)
HSVhsv(237, 65%, 55%)
CMYKcmyk(65.2%, 61.7%, 0%, 44.7%)
CIE-LABlab(27.34, 26.63, -49.06)
CIE-LCHlch(27.34, 55.83, 298.50°)
OKLaboklab(38.43% 0.0124 -0.1412)
OKLCHoklch(38.43% 0.142 275)
XYZxyz(7.3919, 5.2138, 25.8110)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31368D #8D8831
analogous
#31648D #31368D #5A318D
triadic
#31368D #8D3136 #368D31
tetradic
#31368D #8D3164 #8D8831 #318D5A
square
#31368D #8D3164 #8D8831 #318D5A
split-complementary
#31368D #8D5A31 #648D31
monochromatic
#111332 #212560 #31368D #4147BA #6C72CC

Accessibility & contrast

On white

10.28
#31368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#31368D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31368D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31368D#FFFFFF#000000##FFFFFF
##31368D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31368d;
/* rgb */ color: rgb(49, 54, 141);
/* oklch */ color: oklch(38.4% 0.142 275.0);
Tailwind
colors: {
  custom: {
    50: '#746daf',
    500: '#31368d',
    950: '#000000',
  },
}
SCSS
$custom: #31368d;
$custom-light: #746daf;
$custom-dark: #000000;
JSON
{
  "hex": "#31368d",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 236.739,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38426,
    "c": 0.14178,
    "h": 275
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#31368D
secondary
#B4AF66
accent
#D150D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31368D

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

Preview Lab → · Contrast checker → · Palette generator →

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