#312243#312243

#312243 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.6% C 0.061 H 303.7°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#312243
RGBrgb(49, 34, 67)
HSLhsl(267, 33%, 20%)
HSVhsv(267, 49%, 26%)
CMYKcmyk(26.9%, 49.3%, 0%, 73.7%)
CIE-LABlab(16.52, 15.21, -18.25)
CIE-LCHlch(16.52, 23.76, 309.82°)
OKLaboklab(28.65% 0.034 -0.0509)
OKLCHoklch(28.65% 0.061 303.7)
XYZxyz(2.8516, 2.2023, 5.5840)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312243 #344322
analogous
#222443 #312243 #422243
triadic
#312243 #433122 #224331
tetradic
#312243 #432224 #344322 #224342
square
#312243 #432224 #344322 #224342
split-complementary
#312243 #434222 #244322
monochromatic
#0F0A14 #130D1A #312243 #4F376C #6C4B94

Accessibility & contrast

On white

14.58
#312243 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#312243 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312243
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312243#FFFFFF#000000##FFFFFF
##3122431.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192844
Deuteranopia (green-blind)
#1D2942
Tritanopia (blue-blind)
#2E282F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #312243;
/* rgb */ color: rgb(49, 34, 67);
/* oklch */ color: oklch(28.6% 0.061 303.7);
Tailwind
colors: {
  custom: {
    50: '#6a5d77',
    500: '#312243',
    950: '#000000',
  },
}
SCSS
$custom: #312243;
$custom-light: #6a5d77;
$custom-dark: #000000;
JSON
{
  "hex": "#312243",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 67
  },
  "hsl": {
    "h": 267.273,
    "s": 32.673,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28647,
    "c": 0.06124,
    "h": 303.7
  },
  "luminance": 0.02202
}

Semantic roles & 50–950 ramp

primary
#312243
secondary
#62764A
accent
#C95F99
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #312243

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

Preview Lab → · Contrast checker → · Palette generator →

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