#282A74#282A74

#282A74 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.124 H 276.1°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#282A74
RGBrgb(40, 42, 116)
HSLhsl(238, 49%, 31%)
HSVhsv(238, 66%, 45%)
CMYKcmyk(65.5%, 63.8%, 0%, 54.5%)
CIE-LABlab(21.46, 24.05, -42.93)
CIE-LCHlch(21.46, 49.20, 299.26°)
OKLaboklab(33.27% 0.0132 -0.1236)
OKLCHoklch(33.27% 0.124 276.1)
XYZxyz(4.8544, 3.3676, 16.9138)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A74 #747228
analogous
#285074 #282A74 #4C2874
triadic
#282A74 #74282A #2A7428
tetradic
#282A74 #742850 #747228 #28744C
square
#282A74 #742850 #747228 #28744C
split-complementary
#282A74 #744C28 #507428
monochromatic
#090919 #181A46 #282A74 #383AA2 #5356C4

Accessibility & contrast

On white

12.55
#282A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#282A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A74
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A74#FFFFFF#000000##FFFFFF
##282A741.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #282a74;
/* rgb */ color: rgb(40, 42, 116);
/* oklch */ color: oklch(33.3% 0.124 276.1);
Tailwind
colors: {
  custom: {
    50: '#6b639d',
    500: '#282a74',
    950: '#000000',
  },
}
SCSS
$custom: #282a74;
$custom-light: #6b639d;
$custom-dark: #000000;
JSON
{
  "hex": "#282a74",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 238.421,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33267,
    "c": 0.12428,
    "h": 276.1
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#282A74
secondary
#A6A452
accent
#D550D8
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #282A74

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

Preview Lab → · Contrast checker → · Palette generator →

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