#313261#313261

#313261 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.081 H 280.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#313261
RGBrgb(49, 50, 97)
HSLhsl(239, 33%, 29%)
HSVhsv(239, 49%, 38%)
CMYKcmyk(49.5%, 48.5%, 0%, 62%)
CIE-LABlab(22.99, 13.68, -28.13)
CIE-LCHlch(22.99, 31.28, 295.94°)
OKLaboklab(34.14% 0.0145 -0.0797)
OKLCHoklch(34.14% 0.081 280.3)
XYZxyz(4.5642, 3.7970, 11.7993)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313261 #616031
analogous
#314A61 #313261 #483161
triadic
#313261 #613132 #326131
tetradic
#313261 #61314A #616031 #316148
square
#313261 #61314A #616031 #316148
split-complementary
#313261 #614831 #4A6131
monochromatic
#0A0A14 #1C1D38 #313261 #46478A #5E60AE

Accessibility & contrast

On white

11.94
#313261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#313261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313261
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313261#FFFFFF#000000##FFFFFF
##3132611.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3963
Deuteranopia (green-blind)
#1C3560
Tritanopia (blue-blind)
#203C44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313261;
/* rgb */ color: rgb(49, 50, 97);
/* oklch */ color: oklch(34.1% 0.081 280.3);
Tailwind
colors: {
  custom: {
    50: '#6c698e',
    500: '#313261',
    950: '#000000',
  },
}
SCSS
$custom: #313261;
$custom-light: #6c698e;
$custom-dark: #000000;
JSON
{
  "hex": "#313261",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 97
  },
  "hsl": {
    "h": 238.75,
    "s": 32.877,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34142,
    "c": 0.08104,
    "h": 280.3
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#313261
secondary
#92915C
accent
#C75FC9
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #313261

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

Preview Lab → · Contrast checker → · Palette generator →

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