#283171#283171

#283171 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.110 H 273.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#283171
RGBrgb(40, 49, 113)
HSLhsl(233, 48%, 30%)
HSVhsv(233, 65%, 44%)
CMYKcmyk(64.6%, 56.6%, 0%, 55.7%)
CIE-LABlab(23.13, 18.08, -38.29)
CIE-LCHlch(23.13, 42.34, 295.28°)
OKLaboklab(34.43% 0.0061 -0.1098)
OKLCHoklch(34.43% 0.11 273.2)
XYZxyz(4.9530, 3.8396, 16.0997)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283171 #716828
analogous
#285571 #283171 #442871
triadic
#283171 #712831 #317128
tetradic
#283171 #712855 #716828 #287144
square
#283171 #712855 #716828 #287144
split-complementary
#283171 #714428 #557128
monochromatic
#080A17 #181D44 #283171 #38459E #5260C2

Accessibility & contrast

On white

11.88
#283171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #283171
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283171#FFFFFF#000000##FFFFFF
##2831711.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063A73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #283171;
/* rgb */ color: rgb(40, 49, 113);
/* oklch */ color: oklch(34.4% 0.110 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a689a',
    500: '#283171',
    950: '#000000',
  },
}
SCSS
$custom: #283171;
$custom-light: #6a689a;
$custom-dark: #000000;
JSON
{
  "hex": "#283171",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 232.603,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.34434,
    "c": 0.11002,
    "h": 273.2
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#283171
secondary
#A39952
accent
#C750D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #283171

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

Preview Lab → · Contrast checker → · Palette generator →

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