#231A4E#231A4E

#231A4E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.092 H 286.2°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#231A4E
RGBrgb(35, 26, 78)
HSLhsl(250, 50%, 20%)
HSVhsv(250, 67%, 31%)
CMYKcmyk(55.1%, 66.7%, 0%, 69.4%)
CIE-LABlab(13.51, 20.25, -30.73)
CIE-LCHlch(13.51, 36.80, 303.39°)
OKLaboklab(26.29% 0.0256 -0.088)
OKLCHoklch(26.29% 0.092 286.2)
XYZxyz(2.4373, 1.6461, 7.3955)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231A4E #454E1A
analogous
#1A2B4E #231A4E #3D1A4E
triadic
#231A4E #4E231A #1A4E23
tetradic
#231A4E #4E1A2B #454E1A #1A4E3D
square
#231A4E #4E1A2B #454E1A #1A4E3D
split-complementary
#231A4E #4E3D1A #2B4E1A
monochromatic
#0A0817 #0E0B20 #231A4E #38297C #4C39AA

Accessibility & contrast

On white

15.80
#231A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231A4E
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231A4E#FFFFFF#000000##FFFFFF
##231A4E1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#132631
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #231a4e;
/* rgb */ color: rgb(35, 26, 78);
/* oklch */ color: oklch(26.3% 0.092 286.2);
Tailwind
colors: {
  custom: {
    50: '#625780',
    500: '#231a4e',
    950: '#000000',
  },
}
SCSS
$custom: #231a4e;
$custom-light: #625780;
$custom-dark: #000000;
JSON
{
  "hex": "#231a4e",
  "rgb": {
    "r": 35,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 250.385,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26286,
    "c": 0.0916,
    "h": 286.2
  },
  "luminance": 0.01646
}

Semantic roles & 50–950 ramp

primary
#231A4E
secondary
#788440
accent
#DA4EC1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #231A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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