#282178#282178

#282178 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.141 H 278.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#282178
RGBrgb(40, 33, 120)
HSLhsl(245, 57%, 30%)
HSVhsv(245, 73%, 47%)
CMYKcmyk(66.7%, 72.5%, 0%, 52.9%)
CIE-LABlab(19.62, 31.40, -48.50)
CIE-LCHlch(19.62, 57.78, 302.92°)
OKLaboklab(32.04% 0.0206 -0.1399)
OKLCHoklch(32.04% 0.141 278.4)
XYZxyz(4.8080, 2.8945, 18.0710)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282178 #717821
analogous
#214578 #282178 #542178
triadic
#282178 #782821 #217828
tetradic
#282178 #782145 #717821 #217854
square
#282178 #782145 #717821 #217854
split-complementary
#282178 #785421 #457821
monochromatic
#080718 #181448 #282178 #382EA8 #5247CC

Accessibility & contrast

On white

13.30
#282178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#282178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282178
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282178#FFFFFF#000000##FFFFFF
##2821781.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #282178;
/* rgb */ color: rgb(40, 33, 120);
/* oklch */ color: oklch(32.0% 0.141 278.4);
Tailwind
colors: {
  custom: {
    50: '#6d5da0',
    500: '#282178',
    950: '#000000',
  },
}
SCSS
$custom: #282178;
$custom-light: #6d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#282178",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 244.828,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32041,
    "c": 0.14146,
    "h": 278.4
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#282178
secondary
#A3AB4A
accent
#E048D4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #282178

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

Preview Lab → · Contrast checker → · Palette generator →

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