#282170#282170

#282170 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.130 H 279.7°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#282170
RGBrgb(40, 33, 112)
HSLhsl(245, 54%, 28%)
HSVhsv(245, 71%, 44%)
CMYKcmyk(64.3%, 70.5%, 0%, 56.1%)
CIE-LABlab(18.84, 28.59, -44.64)
CIE-LCHlch(18.84, 53.01, 302.64°)
OKLaboklab(31.24% 0.0219 -0.1286)
OKLCHoklch(31.24% 0.13 279.7)
XYZxyz(4.3426, 2.7084, 15.6200)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282170 #697021
analogous
#214170 #282170 #4F2170
triadic
#282170 #702821 #217028
tetradic
#282170 #702141 #697021 #21704F
square
#282170 #702141 #697021 #21704F
split-complementary
#282170 #704F21 #417021
monochromatic
#080718 #171341 #282170 #392F9F #4F44C8

Accessibility & contrast

On white

13.62
#282170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282170
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282170#FFFFFF#000000##FFFFFF
##2821701.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #282170;
/* rgb */ color: rgb(40, 33, 112);
/* oklch */ color: oklch(31.2% 0.130 279.7);
Tailwind
colors: {
  custom: {
    50: '#6b5d9a',
    500: '#282170',
    950: '#000000',
  },
}
SCSS
$custom: #282170;
$custom-light: #6b5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#282170",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 245.316,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31241,
    "c": 0.13048,
    "h": 279.7
  },
  "luminance": 0.02709
}

Semantic roles & 50–950 ramp

primary
#282170
secondary
#9CA449
accent
#DE4AD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #282170

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

Preview Lab → · Contrast checker → · Palette generator →

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