#282AA2#282AA2

#282AA2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.186 H 272.4°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#282AA2
RGBrgb(40, 42, 162)
HSLhsl(239, 60%, 40%)
HSVhsv(239, 75%, 64%)
CMYKcmyk(75.3%, 74.1%, 0%, 36.5%)
CIE-LABlab(25.91, 40.50, -64.30)
CIE-LCHlch(25.91, 75.99, 302.21°)
OKLaboklab(37.84% 0.0078 -0.1861)
OKLCHoklch(37.84% 0.186 272.4)
XYZxyz(8.2224, 4.7148, 34.6521)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282AA2 #A2A028
analogous
#2867A2 #282AA2 #6328A2
triadic
#282AA2 #A2282A #2AA228
tetradic
#282AA2 #A22867 #A2A028 #28A263
square
#282AA2 #A22867 #A2A028 #28A263
split-complementary
#282AA2 #A26328 #67A228
monochromatic
#101140 #1C1D71 #282AA2 #393CCE #6A6CDA

Accessibility & contrast

On white

10.81
#282AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#282AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282AA2
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282AA2#FFFFFF#000000##FFFFFF
##282AA21.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #282aa2;
/* rgb */ color: rgb(40, 42, 162);
/* oklch */ color: oklch(37.8% 0.186 272.4);
Tailwind
colors: {
  custom: {
    50: '#7665bf',
    500: '#282aa2',
    950: '#000000',
  },
}
SCSS
$custom: #282aa2;
$custom-light: #7665bf;
$custom-dark: #000000;
JSON
{
  "hex": "#282aa2",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 239.016,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37837,
    "c": 0.18623,
    "h": 272.4
  },
  "luminance": 0.04716
}

Semantic roles & 50–950 ramp

primary
#282AA2
secondary
#C1BF65
accent
#E144E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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