#281A3E#281A3E

#281A3E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.067 H 299.6°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#281A3E
RGBrgb(40, 26, 62)
HSLhsl(263, 41%, 17%)
HSVhsv(263, 58%, 24%)
CMYKcmyk(35.5%, 58.1%, 0%, 75.7%)
CIE-LABlab(12.85, 16.27, -20.63)
CIE-LCHlch(12.85, 26.28, 308.26°)
OKLaboklab(25.54% 0.033 -0.0581)
OKLCHoklch(25.54% 0.067 299.6)
XYZxyz(2.1138, 1.5377, 4.7419)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A3E #303E1A
analogous
#1A1E3E #281A3E #3A1A3E
triadic
#281A3E #3E281A #1A3E28
tetradic
#281A3E #3E1A1E #303E1A #1A3E3A
square
#281A3E #3E1A1E #303E1A #1A3E3A
split-complementary
#281A3E #3E3A1A #1E3E1A
monochromatic
#0E0916 #0E0916 #281A3E #442C69 #603E94

Accessibility & contrast

On white

16.06
#281A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281A3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A3E
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A3E#FFFFFF#000000##FFFFFF
##281A3E1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E213F
Deuteranopia (green-blind)
#11213D
Tritanopia (blue-blind)
#242129
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281a3e;
/* rgb */ color: rgb(40, 26, 62);
/* oklch */ color: oklch(25.5% 0.067 299.6);
Tailwind
colors: {
  custom: {
    50: '#635773',
    500: '#281a3e',
    950: '#000000',
  },
}
SCSS
$custom: #281a3e;
$custom-light: #635773;
$custom-dark: #000000;
JSON
{
  "hex": "#281a3e",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 62
  },
  "hsl": {
    "h": 263.333,
    "s": 40.909,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25539,
    "c": 0.06687,
    "h": 299.6
  },
  "luminance": 0.01538
}

Semantic roles & 50–950 ramp

primary
#281A3E
secondary
#607440
accent
#D157A1
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #281A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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