#281C58#281C58

#281C58 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.103 H 287.0°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#281C58
RGBrgb(40, 28, 88)
HSLhsl(252, 52%, 23%)
HSVhsv(252, 68%, 35%)
CMYKcmyk(54.5%, 68.2%, 0%, 65.5%)
CIE-LABlab(15.41, 23.50, -34.40)
CIE-LCHlch(15.41, 41.66, 304.35°)
OKLaboklab(28.08% 0.0301 -0.0986)
OKLCHoklch(28.08% 0.103 287)
XYZxyz(3.0513, 1.9861, 9.4532)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C58 #4C581C
analogous
#1C2E58 #281C58 #461C58
triadic
#281C58 #58281C #1C5828
tetradic
#281C58 #581C2E #4C581C #1C5846
square
#281C58 #581C2E #4C581C #1C5846
split-complementary
#281C58 #58461C #2E581C
monochromatic
#0B0717 #130D2A #281C58 #3D2B86 #523AB5

Accessibility & contrast

On white

15.03
#281C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281C58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C58
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C58#FFFFFF#000000##FFFFFF
##281C581.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#172A37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281c58;
/* rgb */ color: rgb(40, 28, 88);
/* oklch */ color: oklch(28.1% 0.103 287.0);
Tailwind
colors: {
  custom: {
    50: '#675988',
    500: '#281c58',
    950: '#000000',
  },
}
SCSS
$custom: #281c58;
$custom-light: #675988;
$custom-dark: #000000;
JSON
{
  "hex": "#281c58",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 252,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28078,
    "c": 0.10305,
    "h": 287
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#281C58
secondary
#7E8E42
accent
#DB4DBF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281C58

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

Preview Lab → · Contrast checker → · Palette generator →

#281C58 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva