#282E71#282E71

#282E71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.8% C 0.114 H 274.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#282E71
RGBrgb(40, 46, 113)
HSLhsl(235, 48%, 30%)
HSVhsv(235, 65%, 44%)
CMYKcmyk(64.6%, 59.3%, 0%, 55.7%)
CIE-LABlab(22.29, 20.17, -39.65)
CIE-LCHlch(22.29, 44.49, 296.96°)
OKLaboklab(33.8% 0.0093 -0.1139)
OKLCHoklch(33.8% 0.114 274.6)
XYZxyz(4.8317, 3.5970, 16.0592)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282E71 #716B28
analogous
#285371 #282E71 #462871
triadic
#282E71 #71282E #2E7128
tetradic
#282E71 #712853 #716B28 #287146
square
#282E71 #712853 #716B28 #287146
split-complementary
#282E71 #714628 #537128
monochromatic
#080917 #181C44 #282E71 #38409E #525BC2

Accessibility & contrast

On white

12.21
#282E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#282E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282E71
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282E71#FFFFFF#000000##FFFFFF
##282E711.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #282e71;
/* rgb */ color: rgb(40, 46, 113);
/* oklch */ color: oklch(33.8% 0.114 274.6);
Tailwind
colors: {
  custom: {
    50: '#6a669a',
    500: '#282e71',
    950: '#000000',
  },
}
SCSS
$custom: #282e71;
$custom-light: #6a669a;
$custom-dark: #000000;
JSON
{
  "hex": "#282e71",
  "rgb": {
    "r": 40,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 235.068,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.33804,
    "c": 0.11428,
    "h": 274.6
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#282E71
secondary
#A39D52
accent
#CC50D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #282E71

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

Preview Lab → · Contrast checker → · Palette generator →

#282E71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva