#282A71#282A71

#282A71 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 33.0% C 0.120 H 276.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#282A71
RGBrgb(40, 42, 113)
HSLhsl(238, 48%, 30%)
HSVhsv(238, 65%, 44%)
CMYKcmyk(64.6%, 62.8%, 0%, 55.7%)
CIE-LABlab(21.20, 22.94, -41.42)
CIE-LCHlch(21.20, 47.35, 298.98°)
OKLaboklab(33% 0.0133 -0.1191)
OKLCHoklch(33% 0.12 276.4)
XYZxyz(4.6827, 3.2989, 16.0096)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A71 #716F28
analogous
#284F71 #282A71 #4A2871
triadic
#282A71 #71282A #2A7128
tetradic
#282A71 #71284F #716F28 #28714A
square
#282A71 #71284F #716F28 #28714A
split-complementary
#282A71 #714A28 #4F7128
monochromatic
#080817 #181944 #282A71 #383B9E #5255C2

Accessibility & contrast

On white

12.65
#282A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#282A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A71
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A71#FFFFFF#000000##FFFFFF
##282A711.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #282a71;
/* rgb */ color: rgb(40, 42, 113);
/* oklch */ color: oklch(33.0% 0.120 276.4);
Tailwind
colors: {
  custom: {
    50: '#6b639a',
    500: '#282a71',
    950: '#000000',
  },
}
SCSS
$custom: #282a71;
$custom-light: #6b639a;
$custom-dark: #000000;
JSON
{
  "hex": "#282a71",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 238.356,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.32997,
    "c": 0.11987,
    "h": 276.4
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#282A71
secondary
#A3A152
accent
#D450D7
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #282A71

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

Preview Lab → · Contrast checker → · Palette generator →

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