#281782#281782

#281782 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.165 H 278.6°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#281782
RGBrgb(40, 23, 130)
HSLhsl(250, 70%, 30%)
HSVhsv(250, 82%, 51%)
CMYKcmyk(69.2%, 82.3%, 0%, 49%)
CIE-LABlab(18.69, 40.39, -56.39)
CIE-LCHlch(18.69, 69.36, 305.61°)
OKLaboklab(31.71% 0.0246 -0.1629)
OKLCHoklch(31.71% 0.165 278.6)
XYZxyz(5.2094, 2.6752, 21.3566)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281782 #718217
analogous
#173B82 #281782 #5E1782
triadic
#281782 #822817 #178228
tetradic
#281782 #82173B #718217 #17825E
square
#281782 #82173B #718217 #17825E
split-complementary
#281782 #825E17 #3B8217
monochromatic
#08051A #180E4E #281782 #3820B6 #5238DC

Accessibility & contrast

On white

13.68
#281782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#281782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281782
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281782#FFFFFF#000000##FFFFFF
##2817821.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002980
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281782;
/* rgb */ color: rgb(40, 23, 130);
/* oklch */ color: oklch(31.7% 0.165 278.6);
Tailwind
colors: {
  custom: {
    50: '#7058a7',
    500: '#281782',
    950: '#000000',
  },
}
SCSS
$custom: #281782;
$custom-light: #7058a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281782",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 249.533,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.31712,
    "c": 0.16472,
    "h": 278.6
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#281782
secondary
#A3B63E
accent
#ED3BD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281782

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

Preview Lab → · Contrast checker → · Palette generator →

#281782 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva