#282AAC#282AAC

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

Color values

HEX#282AAC
RGBrgb(40, 42, 172)
HSLhsl(239, 62%, 42%)
HSVhsv(239, 77%, 67%)
CMYKcmyk(76.7%, 75.6%, 0%, 32.5%)
CIE-LABlab(26.97, 43.90, -68.57)
CIE-LCHlch(26.97, 81.42, 302.62°)
OKLaboklab(38.91% 0.006 -0.1985)
OKLCHoklch(38.91% 0.199 271.7)
XYZxyz(9.1469, 5.0846, 39.5211)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282AAC #ACAA28
analogous
#286CAC #282AAC #6828AC
triadic
#282AAC #AC282A #2AAC28
tetradic
#282AAC #AC286C #ACAA28 #28AC68
square
#282AAC #AC286C #ACAA28 #28AC68
split-complementary
#282AAC #AC6828 #6CAC28
monochromatic
#111249 #1C1E7A #282AAC #3F41D2 #7172DE

Accessibility & contrast

On white

10.41
#282AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#282AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282AAC
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282AAC#FFFFFF#000000##FFFFFF
##282AAC1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#0039AA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #282aac;
/* rgb */ color: rgb(40, 42, 172);
/* oklch */ color: oklch(38.9% 0.199 271.7);
Tailwind
colors: {
  custom: {
    50: '#7965c6',
    500: '#282aac',
    950: '#000000',
  },
}
SCSS
$custom: #282aac;
$custom-light: #7965c6;
$custom-dark: #000000;
JSON
{
  "hex": "#282aac",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 239.091,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38913,
    "c": 0.1986,
    "h": 271.7
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#282AAC
secondary
#C5C36B
accent
#E342E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #282AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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