#281790#281790

#281790 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.182 H 276.4°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#281790
RGBrgb(40, 23, 144)
HSLhsl(248, 72%, 33%)
HSVhsv(248, 84%, 56%)
CMYKcmyk(72.2%, 84%, 0%, 43.5%)
CIE-LABlab(20.35, 44.75, -62.43)
CIE-LCHlch(20.35, 76.81, 305.63°)
OKLaboklab(33.34% 0.0203 -0.1804)
OKLCHoklch(33.34% 0.182 276.4)
XYZxyz(6.2139, 3.0769, 26.6466)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281790 #7F9017
analogous
#174290 #281790 #651790
triadic
#281790 #902817 #179028
tetradic
#281790 #901742 #7F9017 #179065
square
#281790 #901742 #7F9017 #179065
split-complementary
#281790 #906517 #429017
monochromatic
#0B0626 #190F5B #281790 #371FC5 #5741E1

Accessibility & contrast

On white

13.00
#281790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#281790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281790
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281790#FFFFFF#000000##FFFFFF
##2817901.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281790;
/* rgb */ color: rgb(40, 23, 144);
/* oklch */ color: oklch(33.3% 0.182 276.4);
Tailwind
colors: {
  custom: {
    50: '#7459b2',
    500: '#281790',
    950: '#000000',
  },
}
SCSS
$custom: #281790;
$custom-light: #7459b2;
$custom-dark: #000000;
JSON
{
  "hex": "#281790",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 248.43,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33342,
    "c": 0.18156,
    "h": 276.4
  },
  "luminance": 0.03078
}

Semantic roles & 50–950 ramp

primary
#281790
secondary
#AFC142
accent
#EF39D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281790

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

Preview Lab → · Contrast checker → · Palette generator →

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