#281E9D#281E9D

#281E9D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.191 H 274.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#281E9D
RGBrgb(40, 30, 157)
HSLhsl(245, 68%, 37%)
HSVhsv(245, 81%, 62%)
CMYKcmyk(74.5%, 80.9%, 0%, 38.4%)
CIE-LABlab(23.04, 45.43, -65.98)
CIE-LCHlch(23.04, 80.11, 304.55°)
OKLaboklab(35.66% 0.014 -0.1908)
OKLCHoklch(35.66% 0.191 274.2)
XYZxyz(7.4231, 3.8132, 32.2366)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E9D #939D1E
analogous
#1E549D #281E9D #681E9D
triadic
#281E9D #9D281E #1E9D28
tetradic
#281E9D #9D1E54 #939D1E #1E9D68
square
#281E9D #9D1E54 #939D1E #1E9D68
split-complementary
#281E9D #9D681E #549D1E
monochromatic
#0E0A36 #1B146A #281E9D #3528D0 #6157DF

Accessibility & contrast

On white

11.91
#281E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#281E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E9D
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E9D#FFFFFF#000000##FFFFFF
##281E9D1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #281e9d;
/* rgb */ color: rgb(40, 30, 157);
/* oklch */ color: oklch(35.7% 0.191 274.2);
Tailwind
colors: {
  custom: {
    50: '#765dbb',
    500: '#281e9d',
    950: '#000000',
  },
}
SCSS
$custom: #281e9d;
$custom-light: #765dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#281e9d",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 244.724,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35657,
    "c": 0.19135,
    "h": 274.2
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#281E9D
secondary
#BAC254
accent
#EB3DDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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