#282E52#282E52

#282E52 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.065 H 274.9°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#282E52
RGBrgb(40, 46, 82)
HSLhsl(231, 34%, 24%)
HSVhsv(231, 51%, 32%)
CMYKcmyk(51.2%, 43.9%, 0%, 67.8%)
CIE-LABlab(20.10, 8.73, -22.85)
CIE-LCHlch(20.10, 24.46, 290.91°)
OKLaboklab(31.45% 0.0055 -0.0645)
OKLCHoklch(31.45% 0.065 274.9)
XYZxyz(3.3746, 3.0141, 8.3850)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282E52 #524C28
analogous
#284352 #282E52 #372852
triadic
#282E52 #52282E #2E5228
tetradic
#282E52 #522843 #524C28 #285237
square
#282E52 #522843 #524C28 #285237
split-complementary
#282E52 #523728 #435228
monochromatic
#0A0C15 #141729 #282E52 #3C457B #505CA4

Accessibility & contrast

On white

13.10
#282E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#282E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282E52
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282E52#FFFFFF#000000##FFFFFF
##282E521.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203253
Deuteranopia (green-blind)
#1D2F51
Tritanopia (blue-blind)
#19353C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #282e52;
/* rgb */ color: rgb(40, 46, 82);
/* oklch */ color: oklch(31.4% 0.065 274.9);
Tailwind
colors: {
  custom: {
    50: '#656683',
    500: '#282e52',
    950: '#000000',
  },
}
SCSS
$custom: #282e52;
$custom-light: #656683;
$custom-dark: #000000;
JSON
{
  "hex": "#282e52",
  "rgb": {
    "r": 40,
    "g": 46,
    "b": 82
  },
  "hsl": {
    "h": 231.429,
    "s": 34.426,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31446,
    "c": 0.06479,
    "h": 274.9
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#282E52
secondary
#857D51
accent
#BB5DCB
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06050A
muted
#7A7A7C

Preview Lab

Preview with #282E52

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

Preview Lab → · Contrast checker → · Palette generator →

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