#281E96#281E96

#281E96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.183 H 274.9°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#281E96
RGBrgb(40, 30, 150)
HSLhsl(245, 67%, 35%)
HSVhsv(245, 80%, 59%)
CMYKcmyk(73.3%, 80%, 0%, 41.2%)
CIE-LABlab(22.23, 43.19, -63.02)
CIE-LCHlch(22.23, 76.40, 304.43°)
OKLaboklab(34.86% 0.0158 -0.1822)
OKLCHoklch(34.86% 0.183 274.9)
XYZxyz(6.8425, 3.5810, 29.1788)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E96 #8C961E
analogous
#1E5096 #281E96 #641E96
triadic
#281E96 #96281E #1E9628
tetradic
#281E96 #961E50 #8C961E #1E9664
square
#281E96 #961E50 #8C961E #1E9664
split-complementary
#281E96 #96641E #50961E
monochromatic
#0D0A30 #1A1463 #281E96 #3628C9 #5E52DC

Accessibility & contrast

On white

12.23
#281E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#281E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E96
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E96#FFFFFF#000000##FFFFFF
##281E961.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281e96;
/* rgb */ color: rgb(40, 30, 150);
/* oklch */ color: oklch(34.9% 0.183 274.9);
Tailwind
colors: {
  custom: {
    50: '#755db6',
    500: '#281e96',
    950: '#000000',
  },
}
SCSS
$custom: #281e96;
$custom-light: #755db6;
$custom-dark: #000000;
JSON
{
  "hex": "#281e96",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 245,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34856,
    "c": 0.18293,
    "h": 274.9
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#281E96
secondary
#B6BF50
accent
#EA3EDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281E96

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

Preview Lab → · Contrast checker → · Palette generator →

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