#312265#312265

#312265 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.112 H 288.4°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#312265
RGBrgb(49, 34, 101)
HSLhsl(253, 50%, 26%)
HSVhsv(253, 66%, 40%)
CMYKcmyk(51.5%, 66.3%, 0%, 60.4%)
CIE-LABlab(18.96, 25.91, -37.24)
CIE-LCHlch(18.96, 45.37, 304.84°)
OKLaboklab(31.23% 0.0355 -0.1066)
OKLCHoklch(31.23% 0.112 288.4)
XYZxyz(4.1869, 2.7364, 12.6170)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312265 #566522
analogous
#223565 #312265 #532265
triadic
#312265 #653122 #226531
tetradic
#312265 #652235 #566522 #226553
square
#312265 #652235 #566522 #226553
split-complementary
#312265 #655322 #356522
monochromatic
#0B0817 #1B1337 #312265 #473193 #5E42BF

Accessibility & contrast

On white

13.57
#312265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#312265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312265
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312265#FFFFFF#000000##FFFFFF
##3122651.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003067
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#1F3240
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #312265;
/* rgb */ color: rgb(49, 34, 101);
/* oklch */ color: oklch(31.2% 0.112 288.4);
Tailwind
colors: {
  custom: {
    50: '#6e5e91',
    500: '#312265',
    950: '#000000',
  },
}
SCSS
$custom: #312265;
$custom-light: #6e5e91;
$custom-dark: #000000;
JSON
{
  "hex": "#312265",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 101
  },
  "hsl": {
    "h": 253.433,
    "s": 49.63,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31234,
    "c": 0.11235,
    "h": 288.4
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#312265
secondary
#87994A
accent
#D94FBA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #312265

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

Preview Lab → · Contrast checker → · Palette generator →

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