#281E7E#281E7E

#281E7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.153 H 278.1°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#281E7E
RGBrgb(40, 30, 126)
HSLhsl(246, 62%, 31%)
HSVhsv(246, 76%, 49%)
CMYKcmyk(68.3%, 76.2%, 0%, 50.6%)
CIE-LABlab(19.58, 35.28, -52.39)
CIE-LCHlch(19.58, 63.16, 303.95°)
OKLaboklab(32.2% 0.0216 -0.1513)
OKLCHoklch(32.2% 0.153 278.1)
XYZxyz(5.1040, 2.8856, 20.0226)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E7E #747E1E
analogous
#1E447E #281E7E #581E7E
triadic
#281E7E #7E281E #1E7E28
tetradic
#281E7E #7E1E44 #747E1E #1E7E58
square
#281E7E #7E1E44 #747E1E #1E7E58
split-complementary
#281E7E #7E581E #447E1E
monochromatic
#09061B #18124D #281E7E #382AAF #5344D2

Accessibility & contrast

On white

13.31
#281E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#281E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E7E
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E7E#FFFFFF#000000##FFFFFF
##281E7E1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281e7e;
/* rgb */ color: rgb(40, 30, 126);
/* oklch */ color: oklch(32.2% 0.153 278.1);
Tailwind
colors: {
  custom: {
    50: '#6f5ca4',
    500: '#281e7e',
    950: '#000000',
  },
}
SCSS
$custom: #281e7e;
$custom-light: #6f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#281e7e",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 246.25,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32202,
    "c": 0.15282,
    "h": 278.1
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#281E7E
secondary
#A6B147
accent
#E543D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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