#283156#283156

#283156 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.4% C 0.067 H 271.9°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#283156
RGBrgb(40, 49, 86)
HSLhsl(228, 37%, 25%)
HSVhsv(228, 53%, 34%)
CMYKcmyk(53.5%, 43%, 0%, 66.3%)
CIE-LABlab(21.28, 8.04, -23.65)
CIE-LCHlch(21.28, 24.98, 288.78°)
OKLaboklab(32.43% 0.0022 -0.0669)
OKLCHoklch(32.43% 0.067 271.9)
XYZxyz(3.6526, 3.3194, 9.2505)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283156 #564D28
analogous
#284856 #283156 #362856
triadic
#283156 #562831 #315628
tetradic
#283156 #562848 #564D28 #285636
square
#283156 #562848 #564D28 #285636
split-complementary
#283156 #563628 #485628
monochromatic
#0A0C15 #15192C #283156 #3B4980 #4F61AA

Accessibility & contrast

On white

12.62
#283156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#283156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283156
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283156#FFFFFF#000000##FFFFFF
##2831561.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233557
Deuteranopia (green-blind)
#1E3155
Tritanopia (blue-blind)
#15393F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #283156;
/* rgb */ color: rgb(40, 49, 86);
/* oklch */ color: oklch(32.4% 0.067 271.9);
Tailwind
colors: {
  custom: {
    50: '#656886',
    500: '#283156',
    950: '#000000',
  },
}
SCSS
$custom: #283156;
$custom-light: #656886;
$custom-dark: #000000;
JSON
{
  "hex": "#283156",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 86
  },
  "hsl": {
    "h": 228.261,
    "s": 36.508,
    "l": 24.706
  },
  "oklch": {
    "l": 0.3243,
    "c": 0.0669,
    "h": 271.9
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#283156
secondary
#897E51
accent
#B65BCD
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #283156

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

Preview Lab → · Contrast checker → · Palette generator →

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