#281E7F#281E7F

#281E7F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.154 H 278.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#281E7F
RGBrgb(40, 30, 127)
HSLhsl(246, 62%, 31%)
HSVhsv(246, 76%, 50%)
CMYKcmyk(68.5%, 76.4%, 0%, 50.2%)
CIE-LABlab(19.69, 35.61, -52.85)
CIE-LCHlch(19.69, 63.73, 303.98°)
OKLaboklab(32.31% 0.0214 -0.1526)
OKLCHoklch(32.31% 0.154 278)
XYZxyz(5.1689, 2.9115, 20.3641)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E7F #757F1E
analogous
#1E447F #281E7F #581E7F
triadic
#281E7F #7F281E #1E7F28
tetradic
#281E7F #7F1E44 #757F1E #1E7F58
square
#281E7F #7F1E44 #757F1E #1E7F58
split-complementary
#281E7F #7F581E #447F1E
monochromatic
#09071C #18124D #281E7F #382AB1 #5344D3

Accessibility & contrast

On white

13.27
#281E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E7F
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E7F#FFFFFF#000000##FFFFFF
##281E7F1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281e7f;
/* rgb */ color: rgb(40, 30, 127);
/* oklch */ color: oklch(32.3% 0.154 278.0);
Tailwind
colors: {
  custom: {
    50: '#6f5ca5',
    500: '#281e7f',
    950: '#000000',
  },
}
SCSS
$custom: #281e7f;
$custom-light: #6f5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#281e7f",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 246.186,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32309,
    "c": 0.15412,
    "h": 278
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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