#31368B#31368B

#31368B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.139 H 275.1°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#31368B
RGBrgb(49, 54, 139)
HSLhsl(237, 48%, 37%)
HSVhsv(237, 65%, 55%)
CMYKcmyk(64.7%, 61.2%, 0%, 45.5%)
CIE-LABlab(27.17, 25.91, -48.09)
CIE-LCHlch(27.17, 54.63, 298.32°)
OKLaboklab(38.25% 0.0124 -0.1384)
OKLCHoklch(38.25% 0.139 275.1)
XYZxyz(7.2445, 5.1548, 25.0343)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31368B #8B8631
analogous
#31638B #31368B #59318B
triadic
#31368B #8B3136 #368B31
tetradic
#31368B #8B3163 #8B8631 #318B59
square
#31368B #8B3163 #8B8631 #318B59
split-complementary
#31368B #8B5931 #638B31
monochromatic
#111331 #21245E #31368B #4148B8 #6B71CB

Accessibility & contrast

On white

10.34
#31368B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31368B
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31368B#FFFFFF#000000##FFFFFF
##31368B1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31368b;
/* rgb */ color: rgb(49, 54, 139);
/* oklch */ color: oklch(38.3% 0.139 275.1);
Tailwind
colors: {
  custom: {
    50: '#746dae',
    500: '#31368b',
    950: '#000000',
  },
}
SCSS
$custom: #31368b;
$custom-light: #746dae;
$custom-dark: #000000;
JSON
{
  "hex": "#31368b",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 139
  },
  "hsl": {
    "h": 236.667,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38254,
    "c": 0.13895,
    "h": 275.1
  },
  "luminance": 0.05155
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31368B

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

Preview Lab → · Contrast checker → · Palette generator →

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