#31335E#31335E

#31335E is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.075 H 279.7°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#31335E
RGBrgb(49, 51, 94)
HSLhsl(237, 31%, 28%)
HSVhsv(237, 48%, 37%)
CMYKcmyk(47.9%, 45.7%, 0%, 63.1%)
CIE-LABlab(23.10, 11.96, -26.00)
CIE-LCHlch(23.10, 28.62, 294.71°)
OKLaboklab(34.16% 0.0125 -0.0735)
OKLCHoklch(34.16% 0.075 279.7)
XYZxyz(4.4702, 3.8286, 11.0909)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31335E #5E5C31
analogous
#31495E #31335E #45315E
triadic
#31335E #5E3133 #335E31
tetradic
#31335E #5E3149 #5E5C31 #315E45
square
#31335E #5E3149 #5E5C31 #315E45
split-complementary
#31335E #5E4531 #495E31
monochromatic
#0A0B14 #1C1D36 #31335E #464986 #5E62AB

Accessibility & contrast

On white

11.89
#31335E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#31335E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31335E
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31335E#FFFFFF#000000##FFFFFF
##31335E1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233960
Deuteranopia (green-blind)
#20355D
Tritanopia (blue-blind)
#223C44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31335e;
/* rgb */ color: rgb(49, 51, 94);
/* oklch */ color: oklch(34.2% 0.075 279.7);
Tailwind
colors: {
  custom: {
    50: '#6c6a8c',
    500: '#31335e',
    950: '#000000',
  },
}
SCSS
$custom: #31335e;
$custom-light: #6c6a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#31335e",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 94
  },
  "hsl": {
    "h": 237.333,
    "s": 31.469,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34163,
    "c": 0.07455,
    "h": 279.7
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

primary
#31335E
secondary
#8F8D5C
accent
#C360C8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #31335E

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

Preview Lab → · Contrast checker → · Palette generator →

#31335E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva