#282CA9#282CA9

#282CA9 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.193 H 271.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#282CA9
RGBrgb(40, 44, 169)
HSLhsl(238, 62%, 41%)
HSVhsv(238, 76%, 66%)
CMYKcmyk(76.3%, 74%, 0%, 33.7%)
CIE-LABlab(27.06, 41.73, -66.62)
CIE-LCHlch(27.06, 78.61, 302.06°)
OKLaboklab(38.88% 0.0057 -0.1928)
OKLCHoklch(38.88% 0.193 271.7)
XYZxyz(8.9348, 5.1161, 38.0450)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282CA9 #A9A528
analogous
#286CA9 #282CA9 #6528A9
triadic
#282CA9 #A9282C #2CA928
tetradic
#282CA9 #A9286C #A9A528 #28A965
square
#282CA9 #A9286C #A9A528 #28A965
split-complementary
#282CA9 #A96528 #6CA928
monochromatic
#111246 #1C1F78 #282CA9 #3D42D1 #6F72DD

Accessibility & contrast

On white

10.38
#282CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#282CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282CA9
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282CA9#FFFFFF#000000##FFFFFF
##282CA91.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003AA7
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #282ca9;
/* rgb */ color: rgb(40, 44, 169);
/* oklch */ color: oklch(38.9% 0.193 271.7);
Tailwind
colors: {
  custom: {
    50: '#7866c4',
    500: '#282ca9',
    950: '#000000',
  },
}
SCSS
$custom: #282ca9;
$custom-light: #7866c4;
$custom-dark: #000000;
JSON
{
  "hex": "#282ca9",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 238.14,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38881,
    "c": 0.19293,
    "h": 271.7
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#282CA9
secondary
#C4C169
accent
#E043E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #282CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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