#313262#313262

#313262 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.083 H 280.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#313262
RGBrgb(49, 50, 98)
HSLhsl(239, 33%, 29%)
HSVhsv(239, 50%, 38%)
CMYKcmyk(50%, 49%, 0%, 61.6%)
CIE-LABlab(23.05, 14.03, -28.68)
CIE-LCHlch(23.05, 31.93, 296.06°)
OKLaboklab(34.21% 0.0146 -0.0814)
OKLCHoklch(34.21% 0.083 280.2)
XYZxyz(4.6112, 3.8158, 12.0465)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313262 #626131
analogous
#314B62 #313262 #493162
triadic
#313262 #623132 #326231
tetradic
#313262 #62314B #626131 #316249
square
#313262 #62314B #626131 #316249
split-complementary
#313262 #624931 #4B6231
monochromatic
#0A0A14 #1D1D39 #313262 #45478B #5F60AF

Accessibility & contrast

On white

11.91
#313262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313262
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313262#FFFFFF#000000##FFFFFF
##3132621.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3964
Deuteranopia (green-blind)
#1B3561
Tritanopia (blue-blind)
#203C45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313262;
/* rgb */ color: rgb(49, 50, 98);
/* oklch */ color: oklch(34.2% 0.083 280.2);
Tailwind
colors: {
  custom: {
    50: '#6d698f',
    500: '#313262',
    950: '#000000',
  },
}
SCSS
$custom: #313262;
$custom-light: #6d698f;
$custom-dark: #000000;
JSON
{
  "hex": "#313262",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 98
  },
  "hsl": {
    "h": 238.776,
    "s": 33.333,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34211,
    "c": 0.08266,
    "h": 280.2
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#313262
secondary
#93925C
accent
#C75EC9
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #313262

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

Preview Lab → · Contrast checker → · Palette generator →

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