#283166#283166

#283166 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.093 H 273.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#283166
RGBrgb(40, 49, 102)
HSLhsl(231, 44%, 28%)
HSVhsv(231, 61%, 40%)
CMYKcmyk(60.8%, 52%, 0%, 60%)
CIE-LABlab(22.33, 13.94, -32.49)
CIE-LCHlch(22.33, 35.35, 293.22°)
OKLaboklab(33.57% 0.0051 -0.0928)
OKLCHoklch(33.57% 0.093 273.1)
XYZxyz(4.3709, 3.6067, 13.0336)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283166 #665D28
analogous
#285066 #283166 #3E2866
triadic
#283166 #662831 #316628
tetradic
#283166 #662850 #665D28 #28663E
square
#283166 #662850 #665D28 #28663E
split-complementary
#283166 #663E28 #506628
monochromatic
#090B16 #171C3A #283166 #394692 #4F5EBA

Accessibility & contrast

On white

12.20
#283166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#283166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283166
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283166#FFFFFF#000000##FFFFFF
##2831661.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173868
Deuteranopia (green-blind)
#0D3365
Tritanopia (blue-blind)
#023D46
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #283166;
/* rgb */ color: rgb(40, 49, 102);
/* oklch */ color: oklch(33.6% 0.093 273.1);
Tailwind
colors: {
  custom: {
    50: '#686892',
    500: '#283166',
    950: '#000000',
  },
}
SCSS
$custom: #283166;
$custom-light: #686892;
$custom-dark: #000000;
JSON
{
  "hex": "#283166",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 231.29,
    "s": 43.662,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.09293,
    "h": 273.1
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#283166
secondary
#998E51
accent
#C154D3
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #283166

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

Preview Lab → · Contrast checker → · Palette generator →

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