#231257#231257

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

Color values

HEX#231257
RGBrgb(35, 18, 87)
HSLhsl(255, 66%, 21%)
HSVhsv(255, 79%, 34%)
CMYKcmyk(59.8%, 79.3%, 0%, 65.9%)
CIE-LABlab(12.47, 28.51, -38.56)
CIE-LCHlch(12.47, 47.96, 306.48°)
OKLaboklab(25.8% 0.0327 -0.1109)
OKLCHoklch(25.8% 0.116 286.4)
XYZxyz(2.6292, 1.4779, 9.1617)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231257 #465712
analogous
#122357 #231257 #451257
triadic
#231257 #572312 #125723
tetradic
#231257 #571223 #465712 #125745
square
#231257 #571223 #465712 #125745
split-complementary
#231257 #574512 #235712
monochromatic
#0A0519 #0F0824 #231257 #371C8A #4C27BC

Accessibility & contrast

On white

16.21
#231257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231257
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231257#FFFFFF#000000##FFFFFF
##2312571.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001E56
Tritanopia (blue-blind)
#0C2533
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #231257;
/* rgb */ color: rgb(35, 18, 87);
/* oklch */ color: oklch(25.8% 0.116 286.4);
Tailwind
colors: {
  custom: {
    50: '#655287',
    500: '#231257',
    950: '#000000',
  },
}
SCSS
$custom: #231257;
$custom-light: #655287;
$custom-dark: #000000;
JSON
{
  "hex": "#231257",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 254.783,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25803,
    "c": 0.11566,
    "h": 286.4
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#231257
secondary
#799035
accent
#E93FBF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #231257

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

Preview Lab → · Contrast checker → · Palette generator →

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