#282A7B#282A7B

#282A7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.134 H 275.5°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#282A7B
RGBrgb(40, 42, 123)
HSLhsl(239, 51%, 32%)
HSVhsv(239, 67%, 48%)
CMYKcmyk(67.5%, 65.9%, 0%, 51.8%)
CIE-LABlab(22.08, 26.62, -46.39)
CIE-LCHlch(22.08, 53.48, 299.85°)
OKLaboklab(33.91% 0.0128 -0.1337)
OKLCHoklch(33.91% 0.134 275.5)
XYZxyz(5.2770, 3.5367, 19.1396)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A7B #7B7928
analogous
#28547B #282A7B #50287B
triadic
#282A7B #7B282A #2A7B28
tetradic
#282A7B #7B2854 #7B7928 #287B50
square
#282A7B #7B2854 #7B7928 #287B50
split-complementary
#282A7B #7B5028 #547B28
monochromatic
#0A0A1F #191A4D #282A7B #373AA9 #5658C8

Accessibility & contrast

On white

12.30
#282A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#282A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A7B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A7B#FFFFFF#000000##FFFFFF
##282A7B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #282a7b;
/* rgb */ color: rgb(40, 42, 123);
/* oklch */ color: oklch(33.9% 0.134 275.5);
Tailwind
colors: {
  custom: {
    50: '#6d63a2',
    500: '#282a7b',
    950: '#000000',
  },
}
SCSS
$custom: #282a7b;
$custom-light: #6d63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#282a7b",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 238.554,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33911,
    "c": 0.13434,
    "h": 275.5
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#282A7B
secondary
#ADAB52
accent
#D74DDA
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #282A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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