#282CC4#282CC4

#282CC4 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.8% C 0.225 H 270.2°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#282CC4
RGBrgb(40, 44, 196)
HSLhsl(238, 66%, 46%)
HSVhsv(238, 80%, 77%)
CMYKcmyk(79.6%, 77.6%, 0%, 23.1%)
CIE-LABlab(30.00, 50.70, -77.81)
CIE-LCHlch(30.00, 92.87, 303.08°)
OKLaboklab(41.83% 0.001 -0.2254)
OKLCHoklch(41.83% 0.225 270.2)
XYZxyz(11.7362, 6.2367, 52.7991)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282CC4 #C4C028
analogous
#287AC4 #282CC4 #7228C4
triadic
#282CC4 #C4282C #2CC428
tetradic
#282CC4 #C4287A #C4C028 #28C472
square
#282CC4 #C4287A #C4C028 #28C472
split-complementary
#282CC4 #C47228 #7AC428
monochromatic
#13155E #1E2191 #282CC4 #4E52DB #8184E5

Accessibility & contrast

On white

9.34
#282CC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#282CC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282CC4
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282CC4#FFFFFF#000000##FFFFFF
##282CC41.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC8
Deuteranopia (green-blind)
#003FC1
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #282cc4;
/* rgb */ color: rgb(40, 44, 196);
/* oklch */ color: oklch(41.8% 0.225 270.2);
Tailwind
colors: {
  custom: {
    50: '#7f68d7',
    500: '#282cc4',
    950: '#000000',
  },
}
SCSS
$custom: #282cc4;
$custom-light: #7f68d7;
$custom-dark: #000000;
JSON
{
  "hex": "#282cc4",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 196
  },
  "hsl": {
    "h": 238.462,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.41825,
    "c": 0.22536,
    "h": 270.2
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#282CC4
secondary
#CECC7A
accent
#E53FE9
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #282CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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