#282CA4#282CA4

#282CA4 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.187 H 272.0°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#282CA4
RGBrgb(40, 44, 164)
HSLhsl(238, 61%, 40%)
HSVhsv(238, 76%, 64%)
CMYKcmyk(75.6%, 73.2%, 0%, 35.7%)
CIE-LABlab(26.54, 40.01, -64.46)
CIE-LCHlch(26.54, 75.87, 301.83°)
OKLaboklab(38.35% 0.0065 -0.1866)
OKLCHoklch(38.35% 0.187 272)
XYZxyz(8.4743, 4.9319, 35.6201)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282CA4 #A4A028
analogous
#286AA4 #282CA4 #6228A4
triadic
#282CA4 #A4282C #2CA428
tetradic
#282CA4 #A4286A #A4A028 #28A462
square
#282CA4 #A4286A #A4A028 #28A462
split-complementary
#282CA4 #A46228 #6AA428
monochromatic
#101242 #1C1F73 #282CA4 #3A3FCF #6B6FDB

Accessibility & contrast

On white

10.57
#282CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#282CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282CA4
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282CA4#FFFFFF#000000##FFFFFF
##282CA41.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#0039A2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #282ca4;
/* rgb */ color: rgb(40, 44, 164);
/* oklch */ color: oklch(38.4% 0.187 272.0);
Tailwind
colors: {
  custom: {
    50: '#7766c0',
    500: '#282ca4',
    950: '#000000',
  },
}
SCSS
$custom: #282ca4;
$custom-light: #7766c0;
$custom-dark: #000000;
JSON
{
  "hex": "#282ca4",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 238.065,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.38351,
    "c": 0.18668,
    "h": 272
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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