#282CA6#282CA6

#282CA6 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.189 H 271.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#282CA6
RGBrgb(40, 44, 166)
HSLhsl(238, 61%, 40%)
HSVhsv(238, 76%, 65%)
CMYKcmyk(75.9%, 73.5%, 0%, 34.9%)
CIE-LABlab(26.75, 40.70, -65.33)
CIE-LCHlch(26.75, 76.97, 301.92°)
OKLaboklab(38.56% 0.0061 -0.1891)
OKLCHoklch(38.56% 0.189 271.9)
XYZxyz(8.6564, 5.0047, 36.5788)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282CA6 #A6A228
analogous
#286BA6 #282CA6 #6328A6
triadic
#282CA6 #A6282C #2CA628
tetradic
#282CA6 #A6286B #A6A228 #28A663
square
#282CA6 #A6286B #A6A228 #28A663
split-complementary
#282CA6 #A66328 #6BA628
monochromatic
#101243 #1C1F75 #282CA6 #3B40D0 #6D70DC

Accessibility & contrast

On white

10.49
#282CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#282CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282CA6
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282CA6#FFFFFF#000000##FFFFFF
##282CA61.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #282ca6;
/* rgb */ color: rgb(40, 44, 166);
/* oklch */ color: oklch(38.6% 0.189 271.9);
Tailwind
colors: {
  custom: {
    50: '#7766c2',
    500: '#282ca6',
    950: '#000000',
  },
}
SCSS
$custom: #282ca6;
$custom-light: #7766c2;
$custom-dark: #000000;
JSON
{
  "hex": "#282ca6",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 238.095,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38562,
    "c": 0.18919,
    "h": 271.9
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#282CA6
secondary
#C2BF67
accent
#DF44E4
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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