#231277#231277

#231277 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.157 H 278.4°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#231277
RGBrgb(35, 18, 119)
HSLhsl(250, 74%, 27%)
HSVhsv(250, 85%, 47%)
CMYKcmyk(70.6%, 84.9%, 0%, 53.3%)
CIE-LABlab(16.11, 38.89, -53.65)
CIE-LCHlch(16.11, 66.26, 305.93°)
OKLaboklab(29.43% 0.0228 -0.155)
OKLCHoklch(29.43% 0.157 278.4)
XYZxyz(4.2381, 2.1215, 17.6353)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231277 #667712
analogous
#123477 #231277 #561277
triadic
#231277 #772312 #127723
tetradic
#231277 #771234 #667712 #127756
square
#231277 #771234 #667712 #127756
split-complementary
#231277 #775612 #347712
monochromatic
#08041B #130A42 #231277 #331AAC #4425DE

Accessibility & contrast

On white

14.74
#231277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#231277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231277
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231277#FFFFFF#000000##FFFFFF
##2312771.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7A
Deuteranopia (green-blind)
#002475
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #231277;
/* rgb */ color: rgb(35, 18, 119);
/* oklch */ color: oklch(29.4% 0.157 278.4);
Tailwind
colors: {
  custom: {
    50: '#6c549f',
    500: '#231277',
    950: '#000000',
  },
}
SCSS
$custom: #231277;
$custom-light: #6c549f;
$custom-dark: #000000;
JSON
{
  "hex": "#231277",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 119
  },
  "hsl": {
    "h": 250.099,
    "s": 73.723,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29432,
    "c": 0.15664,
    "h": 278.4
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#231277
secondary
#9AAD37
accent
#F037D1
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #231277

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

Preview Lab → · Contrast checker → · Palette generator →

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