#282CAF#282CAF

#282CAF is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.5% C 0.200 H 271.3°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#282CAF
RGBrgb(40, 44, 175)
HSLhsl(238, 63%, 42%)
HSVhsv(238, 77%, 69%)
CMYKcmyk(77.1%, 74.9%, 0%, 31.4%)
CIE-LABlab(27.70, 43.77, -69.17)
CIE-LCHlch(27.70, 81.86, 302.32°)
OKLaboklab(39.52% 0.0047 -0.2003)
OKLCHoklch(39.52% 0.2 271.3)
XYZxyz(9.5110, 5.3466, 41.0799)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282CAF #AFAB28
analogous
#2870AF #282CAF #6728AF
triadic
#282CAF #AF282C #2CAF28
tetradic
#282CAF #AF2870 #AFAB28 #28AF67
square
#282CAF #AF2870 #AFAB28 #28AF67
split-complementary
#282CAF #AF6728 #70AF28
monochromatic
#11134B #1D1F7D #282CAF #4145D4 #7376DF

Accessibility & contrast

On white

10.15
#282CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#282CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282CAF
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282CAF#FFFFFF#000000##FFFFFF
##282CAF1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003BAD
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #282caf;
/* rgb */ color: rgb(40, 44, 175);
/* oklch */ color: oklch(39.5% 0.200 271.3);
Tailwind
colors: {
  custom: {
    50: '#7967c8',
    500: '#282caf',
    950: '#000000',
  },
}
SCSS
$custom: #282caf;
$custom-light: #7967c8;
$custom-dark: #000000;
JSON
{
  "hex": "#282caf",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 238.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39523,
    "c": 0.20032,
    "h": 271.3
  },
  "luminance": 0.05348
}

Semantic roles & 50–950 ramp

primary
#282CAF
secondary
#C6C36D
accent
#E142E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #282CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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