#282A8B#282A8B

#282A8B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.156 H 274.1°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#282A8B
RGBrgb(40, 42, 139)
HSLhsl(239, 55%, 35%)
HSVhsv(239, 71%, 55%)
CMYKcmyk(71.2%, 69.8%, 0%, 45.5%)
CIE-LABlab(23.57, 32.43, -54.00)
CIE-LCHlch(23.57, 62.99, 300.99°)
OKLaboklab(35.46% 0.0112 -0.156)
OKLCHoklch(35.46% 0.156 274.1)
XYZxyz(6.3617, 3.9705, 24.8522)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A8B #8B8928
analogous
#285B8B #282A8B #58288B
triadic
#282A8B #8B282A #2A8B28
tetradic
#282A8B #8B285B #8B8928 #288B58
square
#282A8B #8B285B #8B8928 #288B58
split-complementary
#282A8B #8B5828 #5B8B28
monochromatic
#0D0D2C #1A1C5B #282A8B #3638BB #5D5FD0

Accessibility & contrast

On white

11.70
#282A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#282A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A8B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A8B#FFFFFF#000000##FFFFFF
##282A8B1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282a8b;
/* rgb */ color: rgb(40, 42, 139);
/* oklch */ color: oklch(35.5% 0.156 274.1);
Tailwind
colors: {
  custom: {
    50: '#7164ae',
    500: '#282a8b',
    950: '#000000',
  },
}
SCSS
$custom: #282a8b;
$custom-light: #7164ae;
$custom-dark: #000000;
JSON
{
  "hex": "#282a8b",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 238.788,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35461,
    "c": 0.15642,
    "h": 274.1
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#282A8B
secondary
#B6B459
accent
#DC49DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #282A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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