#231255#231255

#231255 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.113 H 287.1°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#231255
RGBrgb(35, 18, 85)
HSLhsl(255, 65%, 20%)
HSVhsv(255, 79%, 33%)
CMYKcmyk(58.8%, 78.8%, 0%, 66.7%)
CIE-LABlab(12.26, 27.85, -37.54)
CIE-LCHlch(12.26, 46.75, 306.57°)
OKLaboklab(25.59% 0.0332 -0.108)
OKLCHoklch(25.59% 0.113 287.1)
XYZxyz(2.5486, 1.4457, 8.7373)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231255 #445512
analogous
#122255 #231255 #441255
triadic
#231255 #552312 #125523
tetradic
#231255 #551222 #445512 #125544
square
#231255 #551222 #445512 #125544
split-complementary
#231255 #554412 #225512
monochromatic
#0A0519 #0E0722 #231255 #381D88 #4D27BA

Accessibility & contrast

On white

16.29
#231255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231255
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231255#FFFFFF#000000##FFFFFF
##2312551.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#001E54
Tritanopia (blue-blind)
#0E2432
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #231255;
/* rgb */ color: rgb(35, 18, 85);
/* oklch */ color: oklch(25.6% 0.113 287.1);
Tailwind
colors: {
  custom: {
    50: '#655286',
    500: '#231255',
    950: '#000000',
  },
}
SCSS
$custom: #231255;
$custom-light: #655286;
$custom-dark: #000000;
JSON
{
  "hex": "#231255",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 255.224,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25591,
    "c": 0.11296,
    "h": 287.1
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#231255
secondary
#778E35
accent
#E840BD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #231255

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

Preview Lab → · Contrast checker → · Palette generator →

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