#31366A#31366A

#31366A is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.7% C 0.089 H 276.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#31366A
RGBrgb(49, 54, 106)
HSLhsl(235, 37%, 30%)
HSVhsv(235, 54%, 42%)
CMYKcmyk(53.8%, 49.1%, 0%, 58.4%)
CIE-LABlab(24.74, 14.05, -31.17)
CIE-LCHlch(24.74, 34.19, 294.26°)
OKLaboklab(35.66% 0.0105 -0.0886)
OKLCHoklch(35.66% 0.089 276.7)
XYZxyz(5.1865, 4.3316, 14.1957)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31366A #6A6531
analogous
#31526A #31366A #48316A
triadic
#31366A #6A3136 #366A31
tetradic
#31366A #6A3152 #6A6531 #316A48
square
#31366A #6A3152 #6A6531 #316A48
split-complementary
#31366A #6A4831 #526A31
monochromatic
#0A0B16 #1E2140 #31366A #444B94 #6067B5

Accessibility & contrast

On white

11.25
#31366A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31366A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31366A
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31366A#FFFFFF#000000##FFFFFF
##31366A1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3D6C
Deuteranopia (green-blind)
#1A3969
Tritanopia (blue-blind)
#19414B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31366a;
/* rgb */ color: rgb(49, 54, 106);
/* oklch */ color: oklch(35.7% 0.089 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e6c95',
    500: '#31366a',
    950: '#000000',
  },
}
SCSS
$custom: #31366a;
$custom-light: #6e6c95;
$custom-dark: #000000;
JSON
{
  "hex": "#31366a",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 106
  },
  "hsl": {
    "h": 234.737,
    "s": 36.774,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35658,
    "c": 0.08926,
    "h": 276.7
  },
  "luminance": 0.04332
}

Semantic roles & 50–950 ramp

primary
#31366A
secondary
#9B965C
accent
#C35BCD
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31366A

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

Preview Lab → · Contrast checker → · Palette generator →

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