#283771#283771

#283771 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.7% C 0.102 H 269.7°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#283771
RGBrgb(40, 55, 113)
HSLhsl(228, 48%, 30%)
HSVhsv(228, 65%, 44%)
CMYKcmyk(64.6%, 51.3%, 0%, 55.7%)
CIE-LABlab(24.88, 13.88, -35.48)
CIE-LCHlch(24.88, 38.10, 291.37°)
OKLaboklab(35.75% -0.0004 -0.1015)
OKLCHoklch(35.75% 0.102 269.7)
XYZxyz(5.2209, 4.3753, 16.1890)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283771 #716228
analogous
#285C71 #283771 #3D2871
triadic
#283771 #712837 #377128
tetradic
#283771 #71285C #716228 #28713D
square
#283771 #71285C #716228 #28713D
split-complementary
#283771 #713D28 #5C7128
monochromatic
#080B17 #182144 #283771 #384D9E #5269C2

Accessibility & contrast

On white

11.20
#283771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#283771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283771
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283771#FFFFFF#000000##FFFFFF
##2837711.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193E73
Deuteranopia (green-blind)
#0A3870
Tritanopia (blue-blind)
#00444E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #283771;
/* rgb */ color: rgb(40, 55, 113);
/* oklch */ color: oklch(35.7% 0.102 269.7);
Tailwind
colors: {
  custom: {
    50: '#6a6d9a',
    500: '#283771',
    950: '#000000',
  },
}
SCSS
$custom: #283771;
$custom-light: #6a6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#283771",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 227.671,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.35749,
    "c": 0.10151,
    "h": 269.7
  },
  "luminance": 0.04376
}

Semantic roles & 50–950 ramp

primary
#283771
secondary
#A39252
accent
#BC50D7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #283771

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

Preview Lab → · Contrast checker → · Palette generator →

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