#23125A#23125A

#23125A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.120 H 285.4°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#23125A
RGBrgb(35, 18, 90)
HSLhsl(254, 67%, 21%)
HSVhsv(254, 80%, 35%)
CMYKcmyk(61.1%, 80%, 0%, 64.7%)
CIE-LABlab(12.79, 29.50, -40.06)
CIE-LCHlch(12.79, 49.76, 306.37°)
OKLaboklab(26.12% 0.0319 -0.1153)
OKLCHoklch(26.12% 0.12 285.4)
XYZxyz(2.7543, 1.5280, 9.8207)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23125A #495A12
analogous
#12255A #23125A #47125A
triadic
#23125A #5A2312 #125A23
tetradic
#23125A #5A1225 #495A12 #125A47
square
#23125A #5A1225 #495A12 #125A47
split-complementary
#23125A #5A4712 #255A12
monochromatic
#0A051A #0F0827 #23125A #371C8D #4B26C0

Accessibility & contrast

On white

16.08
#23125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#23125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23125A
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23125A#FFFFFF#000000##FFFFFF
##23125A1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#001F59
Tritanopia (blue-blind)
#082635
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #23125a;
/* rgb */ color: rgb(35, 18, 90);
/* oklch */ color: oklch(26.1% 0.120 285.4);
Tailwind
colors: {
  custom: {
    50: '#665289',
    500: '#23125a',
    950: '#000000',
  },
}
SCSS
$custom: #23125a;
$custom-light: #665289;
$custom-dark: #000000;
JSON
{
  "hex": "#23125a",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 254.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26123,
    "c": 0.11967,
    "h": 285.4
  },
  "luminance": 0.01528
}

Semantic roles & 50–950 ramp

primary
#23125A
secondary
#7D9335
accent
#EA3EC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23125A

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

Preview Lab → · Contrast checker → · Palette generator →

#23125A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva