#281882#281882

#281882 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.164 H 278.5°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#281882
RGBrgb(40, 24, 130)
HSLhsl(249, 69%, 30%)
HSVhsv(249, 82%, 51%)
CMYKcmyk(69.2%, 81.5%, 0%, 49%)
CIE-LABlab(18.87, 39.88, -56.10)
CIE-LCHlch(18.87, 68.83, 305.41°)
OKLaboklab(31.83% 0.0241 -0.162)
OKLCHoklch(31.83% 0.164 278.5)
XYZxyz(5.2297, 2.7156, 21.3633)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281882 #728218
analogous
#183D82 #281882 #5D1882
triadic
#281882 #822818 #188228
tetradic
#281882 #82183D #728218 #18825D
square
#281882 #82183D #728218 #18825D
split-complementary
#281882 #825D18 #3D8218
monochromatic
#08051B #180E4E #281882 #3822B6 #523ADB

Accessibility & contrast

On white

13.61
#281882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281882
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281882#FFFFFF#000000##FFFFFF
##2818821.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281882;
/* rgb */ color: rgb(40, 24, 130);
/* oklch */ color: oklch(31.8% 0.164 278.5);
Tailwind
colors: {
  custom: {
    50: '#7058a7',
    500: '#281882',
    950: '#000000',
  },
}
SCSS
$custom: #281882;
$custom-light: #7058a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281882",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 249.057,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31833,
    "c": 0.16382,
    "h": 278.5
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#281882
secondary
#A4B640
accent
#EC3CD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281882

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

Preview Lab → · Contrast checker → · Palette generator →

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