#282CAB#282CAB

#282CAB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.195 H 271.6°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#282CAB
RGBrgb(40, 44, 171)
HSLhsl(238, 62%, 41%)
HSVhsv(238, 77%, 67%)
CMYKcmyk(76.6%, 74.3%, 0%, 32.9%)
CIE-LABlab(27.27, 42.41, -67.48)
CIE-LCHlch(27.27, 79.70, 302.15°)
OKLaboklab(39.09% 0.0053 -0.1953)
OKLCHoklch(39.09% 0.195 271.6)
XYZxyz(9.1240, 5.1918, 39.0414)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282CAB #ABA728
analogous
#286EAB #282CAB #6628AB
triadic
#282CAB #AB282C #2CAB28
tetradic
#282CAB #AB286E #ABA728 #28AB66
square
#282CAB #AB286E #ABA728 #28AB66
split-complementary
#282CAB #AB6628 #6EAB28
monochromatic
#111248 #1C1F79 #282CAB #3E43D2 #7073DE

Accessibility & contrast

On white

10.30
#282CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#282CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282CAB
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282CAB#FFFFFF#000000##FFFFFF
##282CAB1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #282cab;
/* rgb */ color: rgb(40, 44, 171);
/* oklch */ color: oklch(39.1% 0.195 271.6);
Tailwind
colors: {
  custom: {
    50: '#7867c5',
    500: '#282cab',
    950: '#000000',
  },
}
SCSS
$custom: #282cab;
$custom-light: #7867c5;
$custom-dark: #000000;
JSON
{
  "hex": "#282cab",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 238.168,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39094,
    "c": 0.19541,
    "h": 271.6
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#282CAB
secondary
#C4C26A
accent
#E043E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #282CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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