#282FA1#282FA1

#282FA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.180 H 271.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#282FA1
RGBrgb(40, 47, 161)
HSLhsl(237, 60%, 39%)
HSVhsv(237, 75%, 63%)
CMYKcmyk(75.2%, 70.8%, 0%, 36.9%)
CIE-LABlab(26.90, 37.13, -62.06)
CIE-LCHlch(26.90, 72.32, 300.90°)
OKLaboklab(38.52% 0.0053 -0.1796)
OKLCHoklch(38.52% 0.18 271.7)
XYZxyz(8.3224, 5.0565, 34.2487)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282FA1 #A19A28
analogous
#286CA1 #282FA1 #5E28A1
triadic
#282FA1 #A1282F #2FA128
tetradic
#282FA1 #A1286C #A19A28 #28A15E
square
#282FA1 #A1286C #A19A28 #28A15E
split-complementary
#282FA1 #A15E28 #6CA128
monochromatic
#10123F #1C2170 #282FA1 #3941CE #6A70DA

Accessibility & contrast

On white

10.44
#282FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282FA1
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282FA1#FFFFFF#000000##FFFFFF
##282FA11.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #282fa1;
/* rgb */ color: rgb(40, 47, 161);
/* oklch */ color: oklch(38.5% 0.180 271.7);
Tailwind
colors: {
  custom: {
    50: '#7668be',
    500: '#282fa1',
    950: '#000000',
  },
}
SCSS
$custom: #282fa1;
$custom-light: #7668be;
$custom-dark: #000000;
JSON
{
  "hex": "#282fa1",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 236.529,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38515,
    "c": 0.17965,
    "h": 271.7
  },
  "luminance": 0.05057
}

Semantic roles & 50–950 ramp

primary
#282FA1
secondary
#C0BB65
accent
#DA44E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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