#281980#281980

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

Color values

HEX#281980
RGBrgb(40, 25, 128)
HSLhsl(249, 67%, 30%)
HSVhsv(249, 80%, 50%)
CMYKcmyk(68.8%, 80.5%, 0%, 49.8%)
CIE-LABlab(18.82, 38.72, -54.91)
CIE-LCHlch(18.82, 67.19, 305.19°)
OKLaboklab(31.73% 0.0241 -0.1586)
OKLCHoklch(31.73% 0.16 278.7)
XYZxyz(5.1177, 2.7045, 20.6702)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281980 #718019
analogous
#193D80 #281980 #5C1980
triadic
#281980 #802819 #198028
tetradic
#281980 #80193D #718019 #19805C
square
#281980 #80193D #718019 #19805C
split-complementary
#281980 #805C19 #3D8019
monochromatic
#08051A #180F4D #281980 #3823B3 #523BD9

Accessibility & contrast

On white

13.63
#281980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281980
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281980#FFFFFF#000000##FFFFFF
##2819801.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281980;
/* rgb */ color: rgb(40, 25, 128);
/* oklch */ color: oklch(31.7% 0.160 278.7);
Tailwind
colors: {
  custom: {
    50: '#7059a6',
    500: '#281980',
    950: '#000000',
  },
}
SCSS
$custom: #281980;
$custom-light: #7059a6;
$custom-dark: #000000;
JSON
{
  "hex": "#281980",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 248.738,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.31732,
    "c": 0.16043,
    "h": 278.7
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#281980
secondary
#A3B441
accent
#EA3ED1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #281980

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

Preview Lab → · Contrast checker → · Palette generator →

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