#231258#231258

#231258 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.117 H 286.1°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#231258
RGBrgb(35, 18, 88)
HSLhsl(255, 66%, 21%)
HSVhsv(255, 80%, 35%)
CMYKcmyk(60.2%, 79.5%, 0%, 65.5%)
CIE-LABlab(12.57, 28.84, -39.06)
CIE-LCHlch(12.57, 48.56, 306.44°)
OKLaboklab(25.91% 0.0324 -0.1124)
OKLCHoklch(25.91% 0.117 286.1)
XYZxyz(2.6704, 1.4944, 9.3784)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231258 #475812
analogous
#122458 #231258 #461258
triadic
#231258 #582312 #125823
tetradic
#231258 #581224 #475812 #125846
square
#231258 #581224 #475812 #125846
split-complementary
#231258 #584612 #245812
monochromatic
#0A0519 #0F0825 #231258 #371C8B #4B27BE

Accessibility & contrast

On white

16.17
#231258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231258
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231258#FFFFFF#000000##FFFFFF
##2312581.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#001F57
Tritanopia (blue-blind)
#0B2534
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #231258;
/* rgb */ color: rgb(35, 18, 88);
/* oklch */ color: oklch(25.9% 0.117 286.1);
Tailwind
colors: {
  custom: {
    50: '#655288',
    500: '#231258',
    950: '#000000',
  },
}
SCSS
$custom: #231258;
$custom-light: #655288;
$custom-dark: #000000;
JSON
{
  "hex": "#231258",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 254.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25909,
    "c": 0.117,
    "h": 286.1
  },
  "luminance": 0.01495
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #231258

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

Preview Lab → · Contrast checker → · Palette generator →

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