#281780#281780

#281780 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.162 H 278.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#281780
RGBrgb(40, 23, 128)
HSLhsl(250, 70%, 30%)
HSVhsv(250, 82%, 50%)
CMYKcmyk(68.8%, 82%, 0%, 49.8%)
CIE-LABlab(18.46, 39.76, -55.50)
CIE-LCHlch(18.46, 68.27, 305.61°)
OKLaboklab(31.48% 0.0252 -0.1603)
OKLCHoklch(31.48% 0.162 278.9)
XYZxyz(5.0765, 2.6220, 20.6565)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281780 #6F8017
analogous
#173B80 #281780 #5C1780
triadic
#281780 #802817 #178028
tetradic
#281780 #80173B #6F8017 #17805C
square
#281780 #80173B #6F8017 #17805C
split-complementary
#281780 #805C17 #3B8017
monochromatic
#08051A #180E4C #281780 #3820B4 #5136DB

Accessibility & contrast

On white

13.78
#281780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281780
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281780#FFFFFF#000000##FFFFFF
##2817801.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281780;
/* rgb */ color: rgb(40, 23, 128);
/* oklch */ color: oklch(31.5% 0.162 278.9);
Tailwind
colors: {
  custom: {
    50: '#7058a6',
    500: '#281780',
    950: '#000000',
  },
}
SCSS
$custom: #281780;
$custom-light: #7058a6;
$custom-dark: #000000;
JSON
{
  "hex": "#281780",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 249.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31483,
    "c": 0.16226,
    "h": 278.9
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#281780
secondary
#A1B43E
accent
#EC3BD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #281780

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

Preview Lab → · Contrast checker → · Palette generator →

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