#282A77#282A77

#282A77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.129 H 275.8°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#282A77
RGBrgb(40, 42, 119)
HSLhsl(238, 50%, 31%)
HSVhsv(238, 66%, 47%)
CMYKcmyk(66.4%, 64.7%, 0%, 53.3%)
CIE-LABlab(21.72, 25.15, -44.42)
CIE-LCHlch(21.72, 51.05, 299.52°)
OKLaboklab(33.54% 0.0131 -0.1279)
OKLCHoklch(33.54% 0.129 275.8)
XYZxyz(5.0317, 3.4385, 17.8477)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A77 #777528
analogous
#285177 #282A77 #4D2877
triadic
#282A77 #77282A #2A7728
tetradic
#282A77 #772851 #777528 #28774D
square
#282A77 #772851 #777528 #28774D
split-complementary
#282A77 #774D28 #517728
monochromatic
#090A1B #191A49 #282A77 #373AA5 #5457C5

Accessibility & contrast

On white

12.44
#282A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#282A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A77
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A77#FFFFFF#000000##FFFFFF
##282A771.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003175
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #282a77;
/* rgb */ color: rgb(40, 42, 119);
/* oklch */ color: oklch(33.5% 0.129 275.8);
Tailwind
colors: {
  custom: {
    50: '#6c639f',
    500: '#282a77',
    950: '#000000',
  },
}
SCSS
$custom: #282a77;
$custom-light: #6c639f;
$custom-dark: #000000;
JSON
{
  "hex": "#282a77",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 238.481,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3354,
    "c": 0.12862,
    "h": 275.8
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#282A77
secondary
#A9A752
accent
#D64FD9
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #282A77

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

Preview Lab → · Contrast checker → · Palette generator →

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