#282157#282157

#282157 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.9% C 0.094 H 284.8°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#282157
RGBrgb(40, 33, 87)
HSLhsl(248, 45%, 24%)
HSVhsv(248, 62%, 34%)
CMYKcmyk(54%, 62.1%, 0%, 65.9%)
CIE-LABlab(16.64, 19.74, -31.75)
CIE-LCHlch(16.64, 37.39, 301.88°)
OKLaboklab(28.95% 0.024 -0.0908)
OKLCHoklch(28.95% 0.094 284.8)
XYZxyz(3.1387, 2.2268, 9.2794)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282157 #505721
analogous
#213557 #282157 #432157
triadic
#282157 #572821 #215728
tetradic
#282157 #572135 #505721 #215743
square
#282157 #572135 #505721 #215743
split-complementary
#282157 #574321 #355721
monochromatic
#0A0816 #14102B #282157 #3C3283 #5143B0

Accessibility & contrast

On white

14.53
#282157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#282157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282157
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282157#FFFFFF#000000##FFFFFF
##2821571.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#172D38
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #282157;
/* rgb */ color: rgb(40, 33, 87);
/* oklch */ color: oklch(28.9% 0.094 284.8);
Tailwind
colors: {
  custom: {
    50: '#665c87',
    500: '#282157',
    950: '#000000',
  },
}
SCSS
$custom: #282157;
$custom-light: #665c87;
$custom-dark: #000000;
JSON
{
  "hex": "#282157",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 247.778,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28947,
    "c": 0.09387,
    "h": 284.8
  },
  "luminance": 0.02227
}

Semantic roles & 50–950 ramp

primary
#282157
secondary
#838B49
accent
#D553C4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #282157

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

Preview Lab → · Contrast checker → · Palette generator →

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