#281235#281235

#281235 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.069 H 311.2°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#281235
RGBrgb(40, 18, 53)
HSLhsl(278, 49%, 14%)
HSVhsv(278, 66%, 21%)
CMYKcmyk(24.5%, 66%, 0%, 79.2%)
CIE-LABlab(10.11, 19.07, -18.55)
CIE-LCHlch(10.11, 26.60, 315.79°)
OKLaboklab(23.32% 0.0455 -0.052)
OKLCHoklch(23.32% 0.069 311.2)
XYZxyz(1.7339, 1.1408, 3.4963)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281235 #1F3512
analogous
#171235 #281235 #351231
triadic
#281235 #352812 #123528
tetradic
#281235 #351712 #1F3512 #123135
square
#281235 #351712 #1F3512 #123135
split-complementary
#281235 #313512 #123517
monochromatic
#110817 #110817 #281235 #4A2263 #6D3190

Accessibility & contrast

On white

17.10
#281235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#281235 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281235
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281235#FFFFFF#000000##FFFFFF
##2812351.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081B36
Deuteranopia (green-blind)
#0F1C34
Tritanopia (blue-blind)
#261821
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #281235;
/* rgb */ color: rgb(40, 18, 53);
/* oklch */ color: oklch(23.3% 0.069 311.2);
Tailwind
colors: {
  custom: {
    50: '#63516c',
    500: '#281235',
    950: '#000000',
  },
}
SCSS
$custom: #281235;
$custom-light: #63516c;
$custom-dark: #000000;
JSON
{
  "hex": "#281235",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 277.714,
    "s": 49.296,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23317,
    "c": 0.06912,
    "h": 311.2
  },
  "luminance": 0.01141
}

Semantic roles & 50–950 ramp

primary
#281235
secondary
#4A6D35
accent
#D94F82
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050207
muted
#7A787A

Preview Lab

Preview with #281235

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

Preview Lab → · Contrast checker → · Palette generator →

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