#282A7F#282A7F

#282A7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.140 H 275.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#282A7F
RGBrgb(40, 42, 127)
HSLhsl(239, 52%, 33%)
HSVhsv(239, 69%, 50%)
CMYKcmyk(68.5%, 66.9%, 0%, 50.2%)
CIE-LABlab(22.44, 28.09, -48.33)
CIE-LCHlch(22.44, 55.90, 300.16°)
OKLaboklab(34.29% 0.0125 -0.1394)
OKLCHoklch(34.29% 0.14 275.1)
XYZxyz(5.5325, 3.6389, 20.4854)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A7F #7F7D28
analogous
#28557F #282A7F #52287F
triadic
#282A7F #7F282A #2A7F28
tetradic
#282A7F #7F2855 #7F7D28 #287F52
square
#282A7F #7F2855 #7F7D28 #287F52
split-complementary
#282A7F #7F5228 #557F28
monochromatic
#0B0B22 #191B50 #282A7F #3739AE #575ACA

Accessibility & contrast

On white

12.15
#282A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#282A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A7F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A7F#FFFFFF#000000##FFFFFF
##282A7F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282a7f;
/* rgb */ color: rgb(40, 42, 127);
/* oklch */ color: oklch(34.3% 0.140 275.1);
Tailwind
colors: {
  custom: {
    50: '#6e64a5',
    500: '#282a7f',
    950: '#000000',
  },
}
SCSS
$custom: #282a7f;
$custom-light: #6e64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#282a7f",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 238.621,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34289,
    "c": 0.13998,
    "h": 275.1
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#282A7F
secondary
#AFAD54
accent
#D84CDC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #282A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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