#31365C#31365C

#31365C is a dark, moderate blue. Relative luminance 0.041; OKLCH L 34.7% C 0.066 H 276.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#31365C
RGBrgb(49, 54, 92)
HSLhsl(233, 30%, 28%)
HSVhsv(233, 47%, 36%)
CMYKcmyk(46.7%, 41.3%, 0%, 63.9%)
CIE-LABlab(23.88, 9.21, -23.45)
CIE-LCHlch(23.88, 25.19, 291.44°)
OKLaboklab(34.72% 0.0077 -0.066)
OKLCHoklch(34.72% 0.066 276.7)
XYZxyz(4.5170, 4.0638, 10.6695)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31365C #5C5731
analogous
#314B5C #31365C #41315C
triadic
#31365C #5C3136 #365C31
tetradic
#31365C #5C314B #5C5731 #315C41
square
#31365C #5C314B #5C5731 #315C41
split-complementary
#31365C #5C4131 #4B5C31
monochromatic
#0B0C14 #1C1F34 #31365C #464D84 #5E67A9

Accessibility & contrast

On white

11.58
#31365C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#31365C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31365C
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31365C#FFFFFF#000000##FFFFFF
##31365C1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283B5E
Deuteranopia (green-blind)
#25375B
Tritanopia (blue-blind)
#233E44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31365c;
/* rgb */ color: rgb(49, 54, 92);
/* oklch */ color: oklch(34.7% 0.066 276.7);
Tailwind
colors: {
  custom: {
    50: '#6b6c8a',
    500: '#31365c',
    950: '#000000',
  },
}
SCSS
$custom: #31365c;
$custom-light: #6b6c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#31365c",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 92
  },
  "hsl": {
    "h": 233.023,
    "s": 30.496,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34724,
    "c": 0.06648,
    "h": 276.7
  },
  "luminance": 0.04064
}

Semantic roles & 50–950 ramp

primary
#31365C
secondary
#8D875C
accent
#BB61C7
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #31365C

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

Preview Lab → · Contrast checker → · Palette generator →

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