#313165#313165

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

Color values

HEX#313165
RGBrgb(49, 49, 101)
HSLhsl(240, 35%, 29%)
HSVhsv(240, 51%, 40%)
CMYKcmyk(51.5%, 51.5%, 0%, 60.4%)
CIE-LABlab(22.96, 15.76, -30.78)
CIE-LCHlch(22.96, 34.58, 297.11°)
OKLaboklab(34.21% 0.0164 -0.0875)
OKLCHoklch(34.21% 0.089 280.6)
XYZxyz(4.7132, 3.7889, 12.7924)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313165 #656531
analogous
#314B65 #313165 #4B3165
triadic
#313165 #653131 #316531
tetradic
#313165 #65314B #656531 #31654B
square
#313165 #65314B #656531 #31654B
split-complementary
#313165 #654B31 #4B6531
monochromatic
#0A0A15 #1D1D3C #313165 #45458E #5F5FB1

Accessibility & contrast

On white

11.95
#313165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313165
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313165#FFFFFF#000000##FFFFFF
##3131651.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3967
Deuteranopia (green-blind)
#163564
Tritanopia (blue-blind)
#1E3C46
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313165;
/* rgb */ color: rgb(49, 49, 101);
/* oklch */ color: oklch(34.2% 0.089 280.6);
Tailwind
colors: {
  custom: {
    50: '#6d6991',
    500: '#313165',
    950: '#000000',
  },
}
SCSS
$custom: #313165;
$custom-light: #6d6991;
$custom-dark: #000000;
JSON
{
  "hex": "#313165",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 101
  },
  "hsl": {
    "h": 240,
    "s": 34.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34206,
    "c": 0.08905,
    "h": 280.6
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#313165
secondary
#96965C
accent
#CB5DCB
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07060D
muted
#7A7A7D

Preview Lab

Preview with #313165

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

Preview Lab → · Contrast checker → · Palette generator →

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