#231174#231174

#231174 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.154 H 279.1°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#231174
RGBrgb(35, 17, 116)
HSLhsl(251, 74%, 26%)
HSVhsv(251, 85%, 45%)
CMYKcmyk(69.8%, 85.3%, 0%, 54.5%)
CIE-LABlab(15.59, 38.42, -52.59)
CIE-LCHlch(15.59, 65.13, 306.15°)
OKLaboklab(28.96% 0.0243 -0.1519)
OKLCHoklch(28.96% 0.154 279.1)
XYZxyz(4.0450, 2.0188, 16.6961)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231174 #627411
analogous
#113074 #231174 #541174
triadic
#231174 #742311 #117423
tetradic
#231174 #741130 #627411 #117454
square
#231174 #741130 #627411 #117454
split-complementary
#231174 #745411 #307411
monochromatic
#08041B #13093F #231174 #3319A9 #4321DE

Accessibility & contrast

On white

14.96
#231174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#231174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231174
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231174#FFFFFF#000000##FFFFFF
##2311741.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002372
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #231174;
/* rgb */ color: rgb(35, 17, 116);
/* oklch */ color: oklch(29.0% 0.154 279.1);
Tailwind
colors: {
  custom: {
    50: '#6c539d',
    500: '#231174',
    950: '#000000',
  },
}
SCSS
$custom: #231174;
$custom-light: #6c539d;
$custom-dark: #000000;
JSON
{
  "hex": "#231174",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 250.909,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28962,
    "c": 0.1538,
    "h": 279.1
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#231174
secondary
#96AB36
accent
#F137CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231174

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

Preview Lab → · Contrast checker → · Palette generator →

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