#282B7E#282B7E

#282B7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.137 H 274.9°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#282B7E
RGBrgb(40, 43, 126)
HSLhsl(238, 52%, 33%)
HSVhsv(238, 68%, 49%)
CMYKcmyk(68.3%, 65.9%, 0%, 50.6%)
CIE-LABlab(22.60, 27.06, -47.43)
CIE-LCHlch(22.60, 54.61, 299.70°)
OKLaboklab(34.38% 0.0117 -0.1368)
OKLCHoklch(34.38% 0.137 274.9)
XYZxyz(5.5036, 3.6847, 20.1558)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282B7E #7E7B28
analogous
#28567E #282B7E #50287E
triadic
#282B7E #7E282B #2B7E28
tetradic
#282B7E #7E2856 #7E7B28 #287E50
square
#282B7E #7E2856 #7E7B28 #287E50
split-complementary
#282B7E #7E5028 #567E28
monochromatic
#0B0B21 #191B50 #282B7E #373BAC #575BCA

Accessibility & contrast

On white

12.09
#282B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#282B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282B7E
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282B7E#FFFFFF#000000##FFFFFF
##282B7E1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282b7e;
/* rgb */ color: rgb(40, 43, 126);
/* oklch */ color: oklch(34.4% 0.137 274.9);
Tailwind
colors: {
  custom: {
    50: '#6e64a4',
    500: '#282b7e',
    950: '#000000',
  },
}
SCSS
$custom: #282b7e;
$custom-light: #6e64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#282b7e",
  "rgb": {
    "r": 40,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 237.907,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34379,
    "c": 0.13729,
    "h": 274.9
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#282B7E
secondary
#AFAB53
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #282B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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