#31368F#31368F

#31368F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.145 H 274.9°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#31368F
RGBrgb(49, 54, 143)
HSLhsl(237, 49%, 38%)
HSVhsv(237, 66%, 56%)
CMYKcmyk(65.7%, 62.2%, 0%, 43.9%)
CIE-LABlab(27.50, 27.36, -50.03)
CIE-LCHlch(27.50, 57.02, 298.67°)
OKLaboklab(38.6% 0.0123 -0.1441)
OKLCHoklch(38.6% 0.145 274.9)
XYZxyz(7.5421, 5.2738, 26.6018)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31368F #8F8A31
analogous
#31658F #31368F #5B318F
triadic
#31368F #8F3136 #368F31
tetradic
#31368F #8F3165 #8F8A31 #318F5B
square
#31368F #8F3165 #8F8A31 #318F5B
split-complementary
#31368F #8F5B31 #658F31
monochromatic
#121434 #212561 #31368F #4147BD #6D72CD

Accessibility & contrast

On white

10.22
#31368F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#31368F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31368F
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31368F#FFFFFF#000000##FFFFFF
##31368F1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#004C5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31368f;
/* rgb */ color: rgb(49, 54, 143);
/* oklch */ color: oklch(38.6% 0.145 274.9);
Tailwind
colors: {
  custom: {
    50: '#756db1',
    500: '#31368f',
    950: '#000000',
  },
}
SCSS
$custom: #31368f;
$custom-light: #756db1;
$custom-dark: #000000;
JSON
{
  "hex": "#31368f",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 143
  },
  "hsl": {
    "h": 236.809,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38601,
    "c": 0.14461,
    "h": 274.9
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#31368F
secondary
#B5B167
accent
#D14FD9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #31368F

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

Preview Lab → · Contrast checker → · Palette generator →

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