#283157#283157

#283157 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.5% C 0.069 H 272.0°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#283157
RGBrgb(40, 49, 87)
HSLhsl(229, 37%, 25%)
HSVhsv(229, 54%, 34%)
CMYKcmyk(54%, 43.7%, 0%, 65.9%)
CIE-LABlab(21.34, 8.40, -24.21)
CIE-LCHlch(21.34, 25.63, 289.13°)
OKLaboklab(32.5% 0.0024 -0.0685)
OKLCHoklch(32.5% 0.069 272)
XYZxyz(3.6931, 3.3356, 9.4642)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283157 #574E28
analogous
#284857 #283157 #372857
triadic
#283157 #572831 #315728
tetradic
#283157 #572848 #574E28 #285737
square
#283157 #572848 #574E28 #285737
split-complementary
#283157 #573728 #485728
monochromatic
#0A0C15 #15192D #283157 #3B4981 #4F60AB

Accessibility & contrast

On white

12.60
#283157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #283157
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283157#FFFFFF#000000##FFFFFF
##2831571.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #283157;
/* rgb */ color: rgb(40, 49, 87);
/* oklch */ color: oklch(32.5% 0.069 272.0);
Tailwind
colors: {
  custom: {
    50: '#656886',
    500: '#283157',
    950: '#000000',
  },
}
SCSS
$custom: #283157;
$custom-light: #656886;
$custom-dark: #000000;
JSON
{
  "hex": "#283157",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 87
  },
  "hsl": {
    "h": 228.511,
    "s": 37.008,
    "l": 24.902
  },
  "oklch": {
    "l": 0.32497,
    "c": 0.06856,
    "h": 272
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#283157
secondary
#8A7F51
accent
#B75BCD
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #283157

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

Preview Lab → · Contrast checker → · Palette generator →

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