#231A4D#231A4D

#231A4D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.090 H 286.5°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#231A4D
RGBrgb(35, 26, 77)
HSLhsl(251, 50%, 20%)
HSVhsv(251, 66%, 30%)
CMYKcmyk(54.5%, 66.2%, 0%, 69.8%)
CIE-LABlab(13.42, 19.90, -30.18)
CIE-LCHlch(13.42, 36.15, 303.40°)
OKLaboklab(26.2% 0.0256 -0.0863)
OKLCHoklch(26.2% 0.09 286.5)
XYZxyz(2.4017, 1.6318, 7.2082)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231A4D #444D1A
analogous
#1A2A4D #231A4D #3C1A4D
triadic
#231A4D #4D231A #1A4D23
tetradic
#231A4D #4D1A2A #444D1A #1A4D3C
square
#231A4D #4D1A2A #444D1A #1A4D3C
split-complementary
#231A4D #4D3C1A #2A4D1A
monochromatic
#0A0817 #0E0B1F #231A4D #38297B #4D39A9

Accessibility & contrast

On white

15.83
#231A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#231A4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231A4D
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231A4D#FFFFFF#000000##FFFFFF
##231A4D1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#142630
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #231a4d;
/* rgb */ color: rgb(35, 26, 77);
/* oklch */ color: oklch(26.2% 0.090 286.5);
Tailwind
colors: {
  custom: {
    50: '#62577f',
    500: '#231a4d',
    950: '#000000',
  },
}
SCSS
$custom: #231a4d;
$custom-light: #62577f;
$custom-dark: #000000;
JSON
{
  "hex": "#231a4d",
  "rgb": {
    "r": 35,
    "g": 26,
    "b": 77
  },
  "hsl": {
    "h": 250.588,
    "s": 49.515,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26197,
    "c": 0.09006,
    "h": 286.5
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#231A4D
secondary
#778340
accent
#D94FC1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #231A4D

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

Preview Lab → · Contrast checker → · Palette generator →

#231A4D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva