#282FAB#282FAB

#282FAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.192 H 271.2°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#282FAB
RGBrgb(40, 47, 171)
HSLhsl(237, 62%, 41%)
HSVhsv(237, 77%, 67%)
CMYKcmyk(76.6%, 72.5%, 0%, 32.9%)
CIE-LABlab(27.91, 40.64, -66.43)
CIE-LCHlch(27.91, 77.88, 301.46°)
OKLaboklab(39.55% 0.004 -0.1923)
OKLCHoklch(39.55% 0.192 271.2)
XYZxyz(9.2398, 5.4234, 39.0800)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282FAB #ABA428
analogous
#2871AB #282FAB #6328AB
triadic
#282FAB #AB282F #2FAB28
tetradic
#282FAB #AB2871 #ABA428 #28AB63
square
#282FAB #AB2871 #ABA428 #28AB63
split-complementary
#282FAB #AB6328 #71AB28
monochromatic
#111448 #1C2179 #282FAB #3E46D2 #7076DE

Accessibility & contrast

On white

10.07
#282FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#282FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282FAB
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282FAB#FFFFFF#000000##FFFFFF
##282FAB1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #282fab;
/* rgb */ color: rgb(40, 47, 171);
/* oklch */ color: oklch(39.5% 0.192 271.2);
Tailwind
colors: {
  custom: {
    50: '#7868c5',
    500: '#282fab',
    950: '#000000',
  },
}
SCSS
$custom: #282fab;
$custom-light: #7868c5;
$custom-dark: #000000;
JSON
{
  "hex": "#282fab",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 236.794,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39547,
    "c": 0.19235,
    "h": 271.2
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#282FAB
secondary
#C4C06A
accent
#DC43E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #282FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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