#282870#282870

#282870 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.121 H 277.3°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#282870
RGBrgb(40, 40, 112)
HSLhsl(240, 47%, 30%)
HSVhsv(240, 64%, 44%)
CMYKcmyk(64.3%, 64.3%, 0%, 56.1%)
CIE-LABlab(20.59, 23.94, -41.77)
CIE-LCHlch(20.59, 48.15, 299.82°)
OKLaboklab(32.52% 0.0154 -0.1202)
OKLCHoklch(32.52% 0.121 277.3)
XYZxyz(4.5576, 3.1382, 15.6917)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282870 #707028
analogous
#284C70 #282870 #4C2870
triadic
#282870 #702828 #287028
tetradic
#282870 #70284C #707028 #28704C
square
#282870 #70284C #707028 #28704C
split-complementary
#282870 #704C28 #4C7028
monochromatic
#080817 #181843 #282870 #38389D #5151C1

Accessibility & contrast

On white

12.90
#282870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#282870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282870
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282870#FFFFFF#000000##FFFFFF
##2828701.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #282870;
/* rgb */ color: rgb(40, 40, 112);
/* oklch */ color: oklch(32.5% 0.121 277.3);
Tailwind
colors: {
  custom: {
    50: '#6b629a',
    500: '#282870',
    950: '#000000',
  },
}
SCSS
$custom: #282870;
$custom-light: #6b629a;
$custom-dark: #000000;
JSON
{
  "hex": "#282870",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 240,
    "s": 47.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32518,
    "c": 0.12117,
    "h": 277.3
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#282870
secondary
#A2A251
accent
#D751D7
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #282870

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

Preview Lab → · Contrast checker → · Palette generator →

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