#282AA4#282AA4

#282AA4 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.189 H 272.3°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#282AA4
RGBrgb(40, 42, 164)
HSLhsl(239, 61%, 40%)
HSVhsv(239, 76%, 64%)
CMYKcmyk(75.6%, 74.4%, 0%, 35.7%)
CIE-LABlab(26.12, 41.19, -65.16)
CIE-LCHlch(26.12, 77.09, 302.30°)
OKLaboklab(38.05% 0.0074 -0.1886)
OKLCHoklch(38.05% 0.189 272.3)
XYZxyz(8.4016, 4.7865, 35.5959)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282AA4 #A4A228
analogous
#2868A4 #282AA4 #6428A4
triadic
#282AA4 #A4282A #2AA428
tetradic
#282AA4 #A42868 #A4A228 #28A464
square
#282AA4 #A42868 #A4A228 #28A464
split-complementary
#282AA4 #A46428 #68A428
monochromatic
#101142 #1C1D73 #282AA4 #3A3DCF #6B6DDB

Accessibility & contrast

On white

10.73
#282AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#282AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282AA4
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282AA4#FFFFFF#000000##FFFFFF
##282AA41.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #282aa4;
/* rgb */ color: rgb(40, 42, 164);
/* oklch */ color: oklch(38.0% 0.189 272.3);
Tailwind
colors: {
  custom: {
    50: '#7765c0',
    500: '#282aa4',
    950: '#000000',
  },
}
SCSS
$custom: #282aa4;
$custom-light: #7765c0;
$custom-dark: #000000;
JSON
{
  "hex": "#282aa4",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 239.032,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.3805,
    "c": 0.18874,
    "h": 272.3
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#282AA4
secondary
#C1C066
accent
#E144E4
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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