#282256#282256

#282256 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.1% C 0.091 H 284.5°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#282256
RGBrgb(40, 34, 86)
HSLhsl(247, 43%, 24%)
HSVhsv(247, 60%, 34%)
CMYKcmyk(53.5%, 60.5%, 0%, 66.3%)
CIE-LABlab(16.83, 18.69, -30.76)
CIE-LCHlch(16.83, 35.99, 301.29°)
OKLaboklab(29.07% 0.0227 -0.0878)
OKLCHoklch(29.07% 0.091 284.5)
XYZxyz(3.1263, 2.2669, 9.0751)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282256 #505622
analogous
#223656 #282256 #422256
triadic
#282256 #562822 #225628
tetradic
#282256 #562236 #505622 #225642
square
#282256 #562236 #505622 #225642
split-complementary
#282256 #564222 #365622
monochromatic
#0A0916 #14112A #282256 #3C3382 #5145AE

Accessibility & contrast

On white

14.45
#282256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282256
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282256#FFFFFF#000000##FFFFFF
##2822561.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032B58
Deuteranopia (green-blind)
#012855
Tritanopia (blue-blind)
#172E38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #282256;
/* rgb */ color: rgb(40, 34, 86);
/* oklch */ color: oklch(29.1% 0.091 284.5);
Tailwind
colors: {
  custom: {
    50: '#665d86',
    500: '#282256',
    950: '#000000',
  },
}
SCSS
$custom: #282256;
$custom-light: #665d86;
$custom-dark: #000000;
JSON
{
  "hex": "#282256",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 246.923,
    "s": 43.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29066,
    "c": 0.09073,
    "h": 284.5
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#282256
secondary
#838A4A
accent
#D355C5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #282256

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

Preview Lab → · Contrast checker → · Palette generator →

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