#313272#313272

#313272 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.4% C 0.108 H 278.7°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#313272
RGBrgb(49, 50, 114)
HSLhsl(239, 40%, 32%)
HSVhsv(239, 57%, 45%)
CMYKcmyk(57%, 56.1%, 0%, 55.3%)
CIE-LABlab(24.16, 19.64, -37.24)
CIE-LCHlch(24.16, 42.10, 297.81°)
OKLaboklab(35.4% 0.0163 -0.1065)
OKLCHoklch(35.4% 0.108 278.7)
XYZxyz(5.4435, 4.1487, 16.4303)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313272 #727131
analogous
#315372 #313272 #513172
triadic
#313272 #723132 #327231
tetradic
#313272 #723153 #727131 #317251
square
#313272 #723153 #727131 #317251
split-complementary
#313272 #725131 #537231
monochromatic
#0C0C1C #1F1F47 #313272 #43459D #6263BB

Accessibility & contrast

On white

11.48
#313272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#313272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313272
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313272#FFFFFF#000000##FFFFFF
##3132721.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C74
Deuteranopia (green-blind)
#013771
Tritanopia (blue-blind)
#12414D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313272;
/* rgb */ color: rgb(49, 50, 114);
/* oklch */ color: oklch(35.4% 0.108 278.7);
Tailwind
colors: {
  custom: {
    50: '#6f699b',
    500: '#313272',
    950: '#000000',
  },
}
SCSS
$custom: #313272;
$custom-light: #6f699b;
$custom-dark: #000000;
JSON
{
  "hex": "#313272",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 114
  },
  "hsl": {
    "h": 239.077,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35398,
    "c": 0.10775,
    "h": 278.7
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#313272
secondary
#A3A25C
accent
#CE58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313272

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

Preview Lab → · Contrast checker → · Palette generator →

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