#31386A#31386A

#31386A is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.086 H 275.2°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#31386A
RGBrgb(49, 56, 106)
HSLhsl(233, 37%, 30%)
HSVhsv(233, 54%, 42%)
CMYKcmyk(53.8%, 47.2%, 0%, 58.4%)
CIE-LABlab(25.33, 12.67, -30.24)
CIE-LCHlch(25.33, 32.78, 292.74°)
OKLaboklab(36.1% 0.0079 -0.0859)
OKLCHoklch(36.1% 0.086 275.2)
XYZxyz(5.2815, 4.5216, 14.2273)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31386A #6A6331
analogous
#31546A #31386A #47316A
triadic
#31386A #6A3138 #386A31
tetradic
#31386A #6A3154 #6A6331 #316A47
square
#31386A #6A3154 #6A6331 #316A47
split-complementary
#31386A #6A4731 #546A31
monochromatic
#0A0C16 #1E2240 #31386A #444E94 #606AB5

Accessibility & contrast

On white

11.03
#31386A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#31386A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31386A
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31386A#FFFFFF#000000##FFFFFF
##31386A1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233E6C
Deuteranopia (green-blind)
#1D3A69
Tritanopia (blue-blind)
#19434B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31386a;
/* rgb */ color: rgb(49, 56, 106);
/* oklch */ color: oklch(36.1% 0.086 275.2);
Tailwind
colors: {
  custom: {
    50: '#6d6e95',
    500: '#31386a',
    950: '#000000',
  },
}
SCSS
$custom: #31386a;
$custom-light: #6d6e95;
$custom-dark: #000000;
JSON
{
  "hex": "#31386a",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 106
  },
  "hsl": {
    "h": 232.632,
    "s": 36.774,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36104,
    "c": 0.08623,
    "h": 275.2
  },
  "luminance": 0.04522
}

Semantic roles & 50–950 ramp

primary
#31386A
secondary
#9B935C
accent
#BF5BCD
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31386A

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

Preview Lab → · Contrast checker → · Palette generator →

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