#313256#313256

#313256 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.4% C 0.063 H 281.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#313256
RGBrgb(49, 50, 86)
HSLhsl(238, 27%, 26%)
HSVhsv(238, 43%, 34%)
CMYKcmyk(43%, 41.9%, 0%, 66.3%)
CIE-LABlab(22.32, 9.98, -21.95)
CIE-LCHlch(22.32, 24.11, 294.44°)
OKLaboklab(33.42% 0.0122 -0.0617)
OKLCHoklch(33.42% 0.063 281.2)
XYZxyz(4.0865, 3.6059, 9.2830)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313256 #565531
analogous
#314556 #313256 #433156
triadic
#313256 #563132 #325631
tetradic
#313256 #563145 #565531 #315643
square
#313256 #563145 #565531 #315643
split-complementary
#313256 #564331 #455631
monochromatic
#0B0B13 #1B1B2F #313256 #47497D #5E60A3

Accessibility & contrast

On white

12.20
#313256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#313256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313256
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313256#FFFFFF#000000##FFFFFF
##3132561.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263757
Deuteranopia (green-blind)
#243455
Tritanopia (blue-blind)
#26393F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #313256;
/* rgb */ color: rgb(49, 50, 86);
/* oklch */ color: oklch(33.4% 0.063 281.2);
Tailwind
colors: {
  custom: {
    50: '#6b6986',
    500: '#313256',
    950: '#000000',
  },
}
SCSS
$custom: #313256;
$custom-light: #6b6986;
$custom-dark: #000000;
JSON
{
  "hex": "#313256",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 86
  },
  "hsl": {
    "h": 238.378,
    "s": 27.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33418,
    "c": 0.06289,
    "h": 281.2
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#313256
secondary
#87865C
accent
#C164C4
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07060B
muted
#7A7A7C

Preview Lab

Preview with #313256

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

Preview Lab → · Contrast checker → · Palette generator →

#313256 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva