#282CA7#282CA7

#282CA7 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.190 H 271.8°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#282CA7
RGBrgb(40, 44, 167)
HSLhsl(238, 61%, 41%)
HSVhsv(238, 76%, 65%)
CMYKcmyk(76%, 73.7%, 0%, 34.5%)
CIE-LABlab(26.85, 41.04, -65.76)
CIE-LCHlch(26.85, 77.52, 301.97°)
OKLaboklab(38.67% 0.006 -0.1903)
OKLCHoklch(38.67% 0.19 271.8)
XYZxyz(8.7484, 5.0416, 37.0638)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282CA7 #A7A328
analogous
#286BA7 #282CA7 #6328A7
triadic
#282CA7 #A7282C #2CA728
tetradic
#282CA7 #A7286B #A7A328 #28A763
square
#282CA7 #A7286B #A7A328 #28A763
split-complementary
#282CA7 #A76328 #6BA728
monochromatic
#101244 #1C1F76 #282CA7 #3C41D0 #6D71DC

Accessibility & contrast

On white

10.46
#282CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#282CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282CA7
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282CA7#FFFFFF#000000##FFFFFF
##282CA71.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #282ca7;
/* rgb */ color: rgb(40, 44, 167);
/* oklch */ color: oklch(38.7% 0.190 271.8);
Tailwind
colors: {
  custom: {
    50: '#7766c2',
    500: '#282ca7',
    950: '#000000',
  },
}
SCSS
$custom: #282ca7;
$custom-light: #7766c2;
$custom-dark: #000000;
JSON
{
  "hex": "#282ca7",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 238.11,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38668,
    "c": 0.19044,
    "h": 271.8
  },
  "luminance": 0.05043
}

Semantic roles & 50–950 ramp

primary
#282CA7
secondary
#C3C068
accent
#DF43E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #282CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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