#283159#283159

#283159 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.6% C 0.072 H 272.3°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#283159
RGBrgb(40, 49, 89)
HSLhsl(229, 38%, 25%)
HSVhsv(229, 55%, 35%)
CMYKcmyk(55.1%, 44.9%, 0%, 65.1%)
CIE-LABlab(21.46, 9.13, -25.34)
CIE-LCHlch(21.46, 26.93, 289.80°)
OKLaboklab(32.63% 0.0029 -0.0718)
OKLCHoklch(32.63% 0.072 272.3)
XYZxyz(3.7760, 3.3688, 9.9005)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283159 #595028
analogous
#284959 #283159 #382859
triadic
#283159 #592831 #315928
tetradic
#283159 #592849 #595028 #285938
square
#283159 #592849 #595028 #285938
split-complementary
#283159 #593828 #495928
monochromatic
#090C15 #151A2F #283159 #3B4883 #4E5FAD

Accessibility & contrast

On white

12.55
#283159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#283159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283159
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283159#FFFFFF#000000##FFFFFF
##2831591.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21365B
Deuteranopia (green-blind)
#1C3258
Tritanopia (blue-blind)
#133A40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #283159;
/* rgb */ color: rgb(40, 49, 89);
/* oklch */ color: oklch(32.6% 0.072 272.3);
Tailwind
colors: {
  custom: {
    50: '#666888',
    500: '#283159',
    950: '#000000',
  },
}
SCSS
$custom: #283159;
$custom-light: #666888;
$custom-dark: #000000;
JSON
{
  "hex": "#283159",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 89
  },
  "hsl": {
    "h": 228.98,
    "s": 37.984,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32631,
    "c": 0.07188,
    "h": 272.3
  },
  "luminance": 0.03369
}

Semantic roles & 50–950 ramp

primary
#283159
secondary
#8C8151
accent
#B95ACE
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #283159

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

Preview Lab → · Contrast checker → · Palette generator →

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