#282BAB#282BAB

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

Color values

HEX#282BAB
RGBrgb(40, 43, 171)
HSLhsl(239, 62%, 41%)
HSVhsv(239, 77%, 67%)
CMYKcmyk(76.6%, 74.9%, 0%, 32.9%)
CIE-LABlab(27.07, 42.99, -67.81)
CIE-LCHlch(27.07, 80.29, 302.37°)
OKLaboklab(38.95% 0.0058 -0.1963)
OKLCHoklch(38.95% 0.196 271.7)
XYZxyz(9.0872, 5.1182, 39.0292)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282BAB #ABA828
analogous
#286DAB #282BAB #6728AB
triadic
#282BAB #AB282B #2BAB28
tetradic
#282BAB #AB286D #ABA828 #28AB67
square
#282BAB #AB286D #ABA828 #28AB67
split-complementary
#282BAB #AB6728 #6DAB28
monochromatic
#111248 #1C1F79 #282BAB #3E42D2 #7072DE

Accessibility & contrast

On white

10.38
#282BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282BAB
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282BAB#FFFFFF#000000##FFFFFF
##282BAB1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282bab;
/* rgb */ color: rgb(40, 43, 171);
/* oklch */ color: oklch(38.9% 0.196 271.7);
Tailwind
colors: {
  custom: {
    50: '#7866c5',
    500: '#282bab',
    950: '#000000',
  },
}
SCSS
$custom: #282bab;
$custom-light: #7866c5;
$custom-dark: #000000;
JSON
{
  "hex": "#282bab",
  "rgb": {
    "r": 40,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 238.626,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38948,
    "c": 0.1964,
    "h": 271.7
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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