#282173#282173

#282173 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.135 H 279.2°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#282173
RGBrgb(40, 33, 115)
HSLhsl(245, 55%, 29%)
HSVhsv(245, 71%, 45%)
CMYKcmyk(65.2%, 71.3%, 0%, 54.9%)
CIE-LABlab(19.12, 29.65, -46.10)
CIE-LCHlch(19.12, 54.81, 302.75°)
OKLaboklab(31.54% 0.0215 -0.1329)
OKLCHoklch(31.54% 0.135 279.2)
XYZxyz(4.5125, 2.7763, 16.5144)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282173 #6C7321
analogous
#214373 #282173 #512173
triadic
#282173 #732821 #217328
tetradic
#282173 #732143 #6C7321 #217351
square
#282173 #732143 #6C7321 #217351
split-complementary
#282173 #735121 #437321
monochromatic
#080718 #171343 #282173 #392FA3 #5045CA

Accessibility & contrast

On white

13.50
#282173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#282173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282173
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282173#FFFFFF#000000##FFFFFF
##2821731.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #282173;
/* rgb */ color: rgb(40, 33, 115);
/* oklch */ color: oklch(31.5% 0.135 279.2);
Tailwind
colors: {
  custom: {
    50: '#6c5d9c',
    500: '#282173',
    950: '#000000',
  },
}
SCSS
$custom: #282173;
$custom-light: #6c5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#282173",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 245.122,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31538,
    "c": 0.13463,
    "h": 279.2
  },
  "luminance": 0.02777
}

Semantic roles & 50–950 ramp

primary
#282173
secondary
#9EA649
accent
#DF49D2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #282173

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

Preview Lab → · Contrast checker → · Palette generator →

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