#281258#281258

#281258 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.117 H 290.5°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#281258
RGBrgb(40, 18, 88)
HSLhsl(259, 66%, 21%)
HSVhsv(259, 80%, 35%)
CMYKcmyk(54.5%, 79.5%, 0%, 65.5%)
CIE-LABlab(13.16, 29.70, -38.08)
CIE-LCHlch(13.16, 48.29, 307.95°)
OKLaboklab(26.46% 0.0408 -0.1094)
OKLCHoklch(26.46% 0.117 290.5)
XYZxyz(2.8523, 1.5882, 9.3869)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281258 #425812
analogous
#121F58 #281258 #4B1258
triadic
#281258 #582812 #125828
tetradic
#281258 #58121F #425812 #12584B
square
#281258 #58121F #425812 #12584B
split-complementary
#281258 #584B12 #1F5812
monochromatic
#0C0519 #110825 #281258 #3F1C8B #5627BE

Accessibility & contrast

On white

15.94
#281258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#281258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281258
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281258#FFFFFF#000000##FFFFFF
##2812581.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#172534
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281258;
/* rgb */ color: rgb(40, 18, 88);
/* oklch */ color: oklch(26.5% 0.117 290.5);
Tailwind
colors: {
  custom: {
    50: '#685288',
    500: '#281258',
    950: '#000000',
  },
}
SCSS
$custom: #281258;
$custom-light: #685288;
$custom-dark: #000000;
JSON
{
  "hex": "#281258",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 258.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26461,
    "c": 0.11673,
    "h": 290.5
  },
  "luminance": 0.01588
}

Semantic roles & 50–950 ramp

primary
#281258
secondary
#749135
accent
#E93FB3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #281258

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

Preview Lab → · Contrast checker → · Palette generator →

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