#231158#231158

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

Color values

HEX#231158
RGBrgb(35, 17, 88)
HSLhsl(255, 68%, 21%)
HSVhsv(255, 81%, 35%)
CMYKcmyk(60.2%, 80.7%, 0%, 65.5%)
CIE-LABlab(12.37, 29.42, -39.40)
CIE-LCHlch(12.37, 49.17, 306.75°)
OKLaboklab(25.77% 0.0333 -0.1134)
OKLCHoklch(25.77% 0.118 286.4)
XYZxyz(2.6545, 1.4627, 9.3731)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231158 #465811
analogous
#112258 #231158 #461158
triadic
#231158 #582311 #115823
tetradic
#231158 #581122 #465811 #115846
square
#231158 #581122 #465811 #115846
split-complementary
#231158 #584611 #225811
monochromatic
#0A051A #0F0725 #231158 #371B8B #4C25BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##231158#FFFFFF#000000##FFFFFF
##2311581.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)
#00225A
Deuteranopia (green-blind)
#001E57
Tritanopia (blue-blind)
#0B2533
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #231158;
/* rgb */ color: rgb(35, 17, 88);
/* oklch */ color: oklch(25.8% 0.118 286.4);
Tailwind
colors: {
  custom: {
    50: '#655188',
    500: '#231158',
    950: '#000000',
  },
}
SCSS
$custom: #231158;
$custom-light: #655188;
$custom-dark: #000000;
JSON
{
  "hex": "#231158",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 255.211,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25765,
    "c": 0.11818,
    "h": 286.4
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#231158
secondary
#799134
accent
#EA3DBF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #231158

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

Preview Lab → · Contrast checker → · Palette generator →

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