#231252#231252

#231252 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.109 H 288.2°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#231252
RGBrgb(35, 18, 82)
HSLhsl(256, 64%, 20%)
HSVhsv(256, 78%, 32%)
CMYKcmyk(57.3%, 78%, 0%, 67.8%)
CIE-LABlab(11.95, 26.86, -36.00)
CIE-LCHlch(11.95, 44.92, 306.72°)
OKLaboklab(25.28% 0.034 -0.1035)
OKLCHoklch(25.28% 0.109 288.2)
XYZxyz(2.4320, 1.3990, 8.1229)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231252 #415212
analogous
#122152 #231252 #431252
triadic
#231252 #522312 #125223
tetradic
#231252 #521221 #415212 #125243
square
#231252 #521221 #415212 #125243
split-complementary
#231252 #524312 #215212
monochromatic
#0B0619 #0E0720 #231252 #381D84 #4E28B6

Accessibility & contrast

On white

16.41
#231252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#231252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231252
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231252#FFFFFF#000000##FFFFFF
##2312521.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#112330
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #231252;
/* rgb */ color: rgb(35, 18, 82);
/* oklch */ color: oklch(25.3% 0.109 288.2);
Tailwind
colors: {
  custom: {
    50: '#645183',
    500: '#231252',
    950: '#000000',
  },
}
SCSS
$custom: #231252;
$custom-light: #645183;
$custom-dark: #000000;
JSON
{
  "hex": "#231252",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 255.938,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25279,
    "c": 0.10889,
    "h": 288.2
  },
  "luminance": 0.01399
}

Semantic roles & 50–950 ramp

primary
#231252
secondary
#748B35
accent
#E741BB
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #231252

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

Preview Lab → · Contrast checker → · Palette generator →

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