#283172#283172

#283172 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.112 H 273.2°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#283172
RGBrgb(40, 49, 114)
HSLhsl(233, 48%, 30%)
HSVhsv(233, 65%, 45%)
CMYKcmyk(64.9%, 57%, 0%, 55.3%)
CIE-LABlab(23.21, 18.46, -38.80)
CIE-LCHlch(23.21, 42.97, 295.44°)
OKLaboklab(34.52% 0.0062 -0.1114)
OKLCHoklch(34.52% 0.112 273.2)
XYZxyz(5.0096, 3.8622, 16.3978)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283172 #726928
analogous
#285672 #283172 #442872
triadic
#283172 #722831 #317228
tetradic
#283172 #722856 #726928 #287244
square
#283172 #722856 #726928 #287244
split-complementary
#283172 #724428 #567228
monochromatic
#080A17 #181E45 #283172 #38449F #5260C2

Accessibility & contrast

On white

11.85
#283172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#283172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283172
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283172#FFFFFF#000000##FFFFFF
##2831721.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043B74
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #283172;
/* rgb */ color: rgb(40, 49, 114);
/* oklch */ color: oklch(34.5% 0.112 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a689b',
    500: '#283172',
    950: '#000000',
  },
}
SCSS
$custom: #283172;
$custom-light: #6a689b;
$custom-dark: #000000;
JSON
{
  "hex": "#283172",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 232.703,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34516,
    "c": 0.11154,
    "h": 273.2
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#283172
secondary
#A49A52
accent
#C750D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #283172

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

Preview Lab → · Contrast checker → · Palette generator →

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