#283152#283152

#283152 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.2% C 0.060 H 271.1°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#283152
RGBrgb(40, 49, 82)
HSLhsl(227, 34%, 24%)
HSVhsv(227, 51%, 32%)
CMYKcmyk(51.2%, 40.2%, 0%, 67.8%)
CIE-LABlab(21.04, 6.61, -21.36)
CIE-LCHlch(21.04, 22.36, 287.20°)
OKLaboklab(32.17% 0.0012 -0.0602)
OKLCHoklch(32.17% 0.06 271.1)
XYZxyz(3.4959, 3.2567, 8.4254)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283152 #524928
analogous
#284652 #283152 #342852
triadic
#283152 #522831 #315228
tetradic
#283152 #522846 #524928 #285234
square
#283152 #522846 #524928 #285234
split-complementary
#283152 #523428 #465228
monochromatic
#0A0C15 #141829 #283152 #3C4A7B #5062A4

Accessibility & contrast

On white

12.72
#283152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#283152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283152
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283152#FFFFFF#000000##FFFFFF
##2831521.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253453
Deuteranopia (green-blind)
#213151
Tritanopia (blue-blind)
#18383D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #283152;
/* rgb */ color: rgb(40, 49, 82);
/* oklch */ color: oklch(32.2% 0.060 271.1);
Tailwind
colors: {
  custom: {
    50: '#656883',
    500: '#283152',
    950: '#000000',
  },
}
SCSS
$custom: #283152;
$custom-light: #656883;
$custom-dark: #000000;
JSON
{
  "hex": "#283152",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 82
  },
  "hsl": {
    "h": 227.143,
    "s": 34.426,
    "l": 23.922
  },
  "oklch": {
    "l": 0.32171,
    "c": 0.0602,
    "h": 271.1
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#283152
secondary
#857A51
accent
#B35DCB
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #283152

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

Preview Lab → · Contrast checker → · Palette generator →

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