#31368C#31368C

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

Color values

HEX#31368C
RGBrgb(49, 54, 140)
HSLhsl(237, 48%, 37%)
HSVhsv(237, 65%, 55%)
CMYKcmyk(65%, 61.4%, 0%, 45.1%)
CIE-LABlab(27.25, 26.27, -48.58)
CIE-LCHlch(27.25, 55.23, 298.41°)
OKLaboklab(38.34% 0.0124 -0.1398)
OKLCHoklch(38.34% 0.14 275.1)
XYZxyz(7.3179, 5.1841, 25.4209)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31368C #8C8731
analogous
#31648C #31368C #59318C
triadic
#31368C #8C3136 #368C31
tetradic
#31368C #8C3164 #8C8731 #318C59
square
#31368C #8C3164 #8C8731 #318C59
split-complementary
#31368C #8C5931 #648C31
monochromatic
#111331 #21255F #31368C #4147B9 #6C71CC

Accessibility & contrast

On white

10.31
#31368C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31368C
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31368C#FFFFFF#000000##FFFFFF
##31368C1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31368c;
/* rgb */ color: rgb(49, 54, 140);
/* oklch */ color: oklch(38.3% 0.140 275.1);
Tailwind
colors: {
  custom: {
    50: '#746dae',
    500: '#31368c',
    950: '#000000',
  },
}
SCSS
$custom: #31368c;
$custom-light: #746dae;
$custom-dark: #000000;
JSON
{
  "hex": "#31368c",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 140
  },
  "hsl": {
    "h": 236.703,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3834,
    "c": 0.14036,
    "h": 275.1
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

primary
#31368C
secondary
#B3AF66
accent
#D050D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31368C

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

Preview Lab → · Contrast checker → · Palette generator →

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