#313266#313266

#313266 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.089 H 279.8°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#313266
RGBrgb(49, 50, 102)
HSLhsl(239, 35%, 30%)
HSVhsv(239, 52%, 40%)
CMYKcmyk(52%, 51%, 0%, 60%)
CIE-LABlab(23.32, 15.41, -30.86)
CIE-LCHlch(23.32, 34.50, 296.54°)
OKLaboklab(34.49% 0.0152 -0.0878)
OKLCHoklch(34.49% 0.089 279.8)
XYZxyz(4.8048, 3.8932, 13.0661)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313266 #666531
analogous
#314D66 #313266 #4B3166
triadic
#313266 #663132 #326631
tetradic
#313266 #66314D #666531 #31664B
square
#313266 #66314D #666531 #31664B
split-complementary
#313266 #664B31 #4D6631
monochromatic
#0A0A15 #1D1E3D #313266 #45468F #5F61B2

Accessibility & contrast

On white

11.81
#313266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#313266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313266
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313266#FFFFFF#000000##FFFFFF
##3132661.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3A68
Deuteranopia (green-blind)
#173665
Tritanopia (blue-blind)
#1D3D47
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313266;
/* rgb */ color: rgb(49, 50, 102);
/* oklch */ color: oklch(34.5% 0.089 279.8);
Tailwind
colors: {
  custom: {
    50: '#6d6992',
    500: '#313266',
    950: '#000000',
  },
}
SCSS
$custom: #313266;
$custom-light: #6d6992;
$custom-dark: #000000;
JSON
{
  "hex": "#313266",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 102
  },
  "hsl": {
    "h": 238.868,
    "s": 35.099,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.08906,
    "h": 279.8
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#313266
secondary
#97965C
accent
#C95DCB
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #313266

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

Preview Lab → · Contrast checker → · Palette generator →

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