#283151#283151

#283151 is a dark, muted blue. Relative luminance 0.032; OKLCH L 32.1% C 0.059 H 270.9°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#283151
RGBrgb(40, 49, 81)
HSLhsl(227, 34%, 24%)
HSVhsv(227, 51%, 32%)
CMYKcmyk(50.6%, 39.5%, 0%, 68.2%)
CIE-LABlab(20.99, 6.25, -20.78)
CIE-LCHlch(20.99, 21.70, 286.75°)
OKLaboklab(32.11% 0.0009 -0.0585)
OKLCHoklch(32.11% 0.059 270.9)
XYZxyz(3.4581, 3.2416, 8.2265)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283151 #514828
analogous
#284551 #283151 #332851
triadic
#283151 #512831 #315128
tetradic
#283151 #512845 #514828 #285133
square
#283151 #512845 #514828 #285133
split-complementary
#283151 #513328 #455128
monochromatic
#0A0C14 #141828 #283151 #3C4A7A #5063A3

Accessibility & contrast

On white

12.74
#283151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #283151
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283151#FFFFFF#000000##FFFFFF
##2831511.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253452
Deuteranopia (green-blind)
#213150
Tritanopia (blue-blind)
#19383D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #283151;
/* rgb */ color: rgb(40, 49, 81);
/* oklch */ color: oklch(32.1% 0.059 270.9);
Tailwind
colors: {
  custom: {
    50: '#646882',
    500: '#283151',
    950: '#000000',
  },
}
SCSS
$custom: #283151;
$custom-light: #646882;
$custom-dark: #000000;
JSON
{
  "hex": "#283151",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 81
  },
  "hsl": {
    "h": 226.829,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32108,
    "c": 0.05852,
    "h": 270.9
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#283151
secondary
#847951
accent
#B25ECA
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #283151

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

Preview Lab → · Contrast checker → · Palette generator →

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