#281858#281858

#281858 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.109 H 288.6°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#281858
RGBrgb(40, 24, 88)
HSLhsl(255, 57%, 22%)
HSVhsv(255, 73%, 35%)
CMYKcmyk(54.5%, 72.7%, 0%, 65.5%)
CIE-LABlab(14.45, 26.11, -35.97)
CIE-LCHlch(14.45, 44.44, 305.97°)
OKLaboklab(27.38% 0.0346 -0.1032)
OKLCHoklch(27.38% 0.109 288.6)
XYZxyz(2.9626, 1.8088, 9.4237)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281858 #485818
analogous
#182858 #281858 #481858
triadic
#281858 #582818 #185828
tetradic
#281858 #581828 #485818 #185848
square
#281858 #581828 #485818 #185848
split-complementary
#281858 #584818 #285818
monochromatic
#0B0718 #120B28 #281858 #3E2588 #5432B8

Accessibility & contrast

On white

15.42
#281858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#281858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281858
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281858#FFFFFF#000000##FFFFFF
##2818581.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#172835
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281858;
/* rgb */ color: rgb(40, 24, 88);
/* oklch */ color: oklch(27.4% 0.109 288.6);
Tailwind
colors: {
  custom: {
    50: '#675688',
    500: '#281858',
    950: '#000000',
  },
}
SCSS
$custom: #281858;
$custom-light: #675688;
$custom-dark: #000000;
JSON
{
  "hex": "#281858",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 255,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27381,
    "c": 0.10884,
    "h": 288.6
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#281858
secondary
#7A8F3D
accent
#E047BA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #281858

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

Preview Lab → · Contrast checker → · Palette generator →

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