#281785#281785

#281785 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.168 H 278.1°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#281785
RGBrgb(40, 23, 133)
HSLhsl(249, 71%, 31%)
HSVhsv(249, 83%, 52%)
CMYKcmyk(69.9%, 82.7%, 0%, 47.8%)
CIE-LABlab(19.04, 41.33, -57.70)
CIE-LCHlch(19.04, 70.98, 305.61°)
OKLaboklab(32.06% 0.0237 -0.1667)
OKLCHoklch(32.06% 0.168 278.1)
XYZxyz(5.4137, 2.7569, 22.4326)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281785 #748517
analogous
#173D85 #281785 #5F1785
triadic
#281785 #852817 #178528
tetradic
#281785 #85173D #748517 #17855F
square
#281785 #85173D #748517 #17855F
split-complementary
#281785 #855F17 #3D8517
monochromatic
#09051D #180E51 #281785 #3820B9 #533ADD

Accessibility & contrast

On white

13.54
#281785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#281785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281785
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281785#FFFFFF#000000##FFFFFF
##2817851.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281785;
/* rgb */ color: rgb(40, 23, 133);
/* oklch */ color: oklch(32.1% 0.168 278.1);
Tailwind
colors: {
  custom: {
    50: '#7158aa',
    500: '#281785',
    950: '#000000',
  },
}
SCSS
$custom: #281785;
$custom-light: #7158aa;
$custom-dark: #000000;
JSON
{
  "hex": "#281785",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 249.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32057,
    "c": 0.16837,
    "h": 278.1
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

primary
#281785
secondary
#A6B93F
accent
#ED3BD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281785

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

Preview Lab → · Contrast checker → · Palette generator →

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