#231256#231256

#231256 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.114 H 286.8°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#231256
RGBrgb(35, 18, 86)
HSLhsl(255, 65%, 20%)
HSVhsv(255, 79%, 34%)
CMYKcmyk(59.3%, 79.1%, 0%, 66.3%)
CIE-LABlab(12.36, 28.18, -38.05)
CIE-LCHlch(12.36, 47.35, 306.53°)
OKLaboklab(25.7% 0.033 -0.1095)
OKLCHoklch(25.7% 0.114 286.8)
XYZxyz(2.5887, 1.4617, 8.9480)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231256 #455612
analogous
#122356 #231256 #451256
triadic
#231256 #562312 #125623
tetradic
#231256 #561223 #455612 #125645
square
#231256 #561223 #455612 #125645
split-complementary
#231256 #564512 #235612
monochromatic
#0A0519 #0E0723 #231256 #381D89 #4C27BB

Accessibility & contrast

On white

16.25
#231256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#231256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231256
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231256#FFFFFF#000000##FFFFFF
##2312561.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#001E55
Tritanopia (blue-blind)
#0D2433
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #231256;
/* rgb */ color: rgb(35, 18, 86);
/* oklch */ color: oklch(25.7% 0.114 286.8);
Tailwind
colors: {
  custom: {
    50: '#655286',
    500: '#231256',
    950: '#000000',
  },
}
SCSS
$custom: #231256;
$custom-light: #655286;
$custom-dark: #000000;
JSON
{
  "hex": "#231256",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 255,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25697,
    "c": 0.11432,
    "h": 286.8
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#231256
secondary
#788F35
accent
#E83FBE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #231256

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

Preview Lab → · Contrast checker → · Palette generator →

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