#281B62#281B62

#281B62 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.119 H 284.5°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#281B62
RGBrgb(40, 27, 98)
HSLhsl(251, 57%, 25%)
HSVhsv(251, 72%, 38%)
CMYKcmyk(59.2%, 72.4%, 0%, 61.6%)
CIE-LABlab(16.09, 27.58, -39.97)
CIE-LCHlch(16.09, 48.56, 304.60°)
OKLaboklab(28.85% 0.0298 -0.1149)
OKLCHoklch(28.85% 0.119 284.5)
XYZxyz(3.4709, 2.1166, 11.7786)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B62 #55621B
analogous
#1B3262 #281B62 #4C1B62
triadic
#281B62 #62281B #1B6228
tetradic
#281B62 #621B32 #55621B #1B624C
square
#281B62 #621B32 #55621B #1B624C
split-complementary
#281B62 #624C1B #32621B
monochromatic
#0A0718 #140E32 #281B62 #3C2892 #4F35C2

Accessibility & contrast

On white

14.75
#281B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B62
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B62#FFFFFF#000000##FFFFFF
##281B621.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#0D2D3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281b62;
/* rgb */ color: rgb(40, 27, 98);
/* oklch */ color: oklch(28.8% 0.119 284.5);
Tailwind
colors: {
  custom: {
    50: '#69588f',
    500: '#281b62',
    950: '#000000',
  },
}
SCSS
$custom: #281b62;
$custom-light: #69588f;
$custom-dark: #000000;
JSON
{
  "hex": "#281b62",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 250.986,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28849,
    "c": 0.11874,
    "h": 284.5
  },
  "luminance": 0.02117
}

Semantic roles & 50–950 ramp

primary
#281B62
secondary
#889841
accent
#E048C4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281B62

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

Preview Lab → · Contrast checker → · Palette generator →

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