#231275#231275

#231275 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.154 H 278.7°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#231275
RGBrgb(35, 18, 117)
HSLhsl(250, 73%, 26%)
HSVhsv(250, 85%, 46%)
CMYKcmyk(70.1%, 84.6%, 0%, 54.1%)
CIE-LABlab(15.87, 38.26, -52.77)
CIE-LCHlch(15.87, 65.18, 305.94°)
OKLaboklab(29.19% 0.0235 -0.1524)
OKLCHoklch(29.19% 0.154 278.7)
XYZxyz(4.1193, 2.0739, 17.0094)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231275 #647512
analogous
#123375 #231275 #551275
triadic
#231275 #752312 #127523
tetradic
#231275 #751233 #647512 #127555
square
#231275 #751233 #647512 #127555
split-complementary
#231275 #755512 #337512
monochromatic
#08041B #130A40 #231275 #331AAA #4424DD

Accessibility & contrast

On white

14.84
#231275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#231275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231275
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231275#FFFFFF#000000##FFFFFF
##2312751.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B78
Deuteranopia (green-blind)
#002373
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #231275;
/* rgb */ color: rgb(35, 18, 117);
/* oklch */ color: oklch(29.2% 0.154 278.7);
Tailwind
colors: {
  custom: {
    50: '#6c549e',
    500: '#231275',
    950: '#000000',
  },
}
SCSS
$custom: #231275;
$custom-light: #6c549e;
$custom-dark: #000000;
JSON
{
  "hex": "#231275",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 250.303,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29194,
    "c": 0.15418,
    "h": 278.7
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#231275
secondary
#98AC37
accent
#F038D0
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231275

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

Preview Lab → · Contrast checker → · Palette generator →

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