#281783#281783

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

Color values

HEX#281783
RGBrgb(40, 23, 131)
HSLhsl(249, 70%, 30%)
HSVhsv(249, 82%, 51%)
CMYKcmyk(69.5%, 82.4%, 0%, 48.6%)
CIE-LABlab(18.81, 40.70, -56.83)
CIE-LCHlch(18.81, 69.90, 305.61°)
OKLaboklab(31.83% 0.0243 -0.1641)
OKLCHoklch(31.83% 0.166 278.4)
XYZxyz(5.2769, 2.7021, 21.7118)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281783 #728317
analogous
#173C83 #281783 #5E1783
triadic
#281783 #832817 #178328
tetradic
#281783 #83173C #728317 #17835E
square
#281783 #83173C #728317 #17835E
split-complementary
#281783 #835E17 #3C8317
monochromatic
#08051B #180E4F #281783 #3820B7 #5238DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##281783#FFFFFF#000000##FFFFFF
##2817831.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)
#003286
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281783;
/* rgb */ color: rgb(40, 23, 131);
/* oklch */ color: oklch(31.8% 0.166 278.4);
Tailwind
colors: {
  custom: {
    50: '#7158a8',
    500: '#281783',
    950: '#000000',
  },
}
SCSS
$custom: #281783;
$custom-light: #7158a8;
$custom-dark: #000000;
JSON
{
  "hex": "#281783",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 249.444,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31827,
    "c": 0.16594,
    "h": 278.4
  },
  "luminance": 0.02703
}

Semantic roles & 50–950 ramp

primary
#281783
secondary
#A4B73F
accent
#ED3BD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281783

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

Preview Lab → · Contrast checker → · Palette generator →

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