#282CA5#282CA5

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

Color values

HEX#282CA5
RGBrgb(40, 44, 165)
HSLhsl(238, 61%, 40%)
HSVhsv(238, 76%, 65%)
CMYKcmyk(75.8%, 73.3%, 0%, 35.3%)
CIE-LABlab(26.64, 40.35, -64.90)
CIE-LCHlch(26.64, 76.42, 301.87°)
OKLaboklab(38.46% 0.0063 -0.1878)
OKLCHoklch(38.46% 0.188 271.9)
XYZxyz(8.5650, 4.9682, 36.0976)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282CA5 #A5A128
analogous
#286AA5 #282CA5 #6228A5
triadic
#282CA5 #A5282C #2CA528
tetradic
#282CA5 #A5286A #A5A128 #28A562
square
#282CA5 #A5286A #A5A128 #28A562
split-complementary
#282CA5 #A56228 #6AA528
monochromatic
#101242 #1C1F74 #282CA5 #3B40CF #6C70DB

Accessibility & contrast

On white

10.53
#282CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282CA5
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282CA5#FFFFFF#000000##FFFFFF
##282CA51.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282ca5;
/* rgb */ color: rgb(40, 44, 165);
/* oklch */ color: oklch(38.5% 0.188 271.9);
Tailwind
colors: {
  custom: {
    50: '#7766c1',
    500: '#282ca5',
    950: '#000000',
  },
}
SCSS
$custom: #282ca5;
$custom-light: #7766c1;
$custom-dark: #000000;
JSON
{
  "hex": "#282ca5",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 238.08,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38457,
    "c": 0.18794,
    "h": 271.9
  },
  "luminance": 0.04969
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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