#231259#231259

#231259 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.118 H 285.8°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#231259
RGBrgb(35, 18, 89)
HSLhsl(254, 66%, 21%)
HSVhsv(254, 80%, 35%)
CMYKcmyk(60.7%, 79.8%, 0%, 65.1%)
CIE-LABlab(12.68, 29.18, -39.56)
CIE-LCHlch(12.68, 49.16, 306.41°)
OKLaboklab(26.02% 0.0321 -0.1139)
OKLCHoklch(26.02% 0.118 285.8)
XYZxyz(2.7121, 1.5111, 9.5980)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231259 #485912
analogous
#122459 #231259 #461259
triadic
#231259 #592312 #125923
tetradic
#231259 #591224 #485912 #125946
square
#231259 #591224 #485912 #125946
split-complementary
#231259 #594612 #245912
monochromatic
#0A0519 #0F0826 #231259 #371C8C #4B27BF

Accessibility & contrast

On white

16.13
#231259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#231259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231259
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231259#FFFFFF#000000##FFFFFF
##2312591.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235B
Deuteranopia (green-blind)
#001F58
Tritanopia (blue-blind)
#092634
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #231259;
/* rgb */ color: rgb(35, 18, 89);
/* oklch */ color: oklch(26.0% 0.118 285.8);
Tailwind
colors: {
  custom: {
    50: '#655289',
    500: '#231259',
    950: '#000000',
  },
}
SCSS
$custom: #231259;
$custom-light: #655289;
$custom-dark: #000000;
JSON
{
  "hex": "#231259",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 254.366,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26016,
    "c": 0.11834,
    "h": 285.8
  },
  "luminance": 0.01511
}

Semantic roles & 50–950 ramp

primary
#231259
secondary
#7B9235
accent
#E93FC0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #231259

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

Preview Lab → · Contrast checker → · Palette generator →

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