#282BA2#282BA2

#282BA2 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.185 H 272.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#282BA2
RGBrgb(40, 43, 162)
HSLhsl(239, 60%, 40%)
HSVhsv(239, 75%, 64%)
CMYKcmyk(75.3%, 73.5%, 0%, 36.5%)
CIE-LABlab(26.12, 39.91, -63.95)
CIE-LCHlch(26.12, 75.38, 301.97°)
OKLaboklab(37.99% 0.0073 -0.1851)
OKLCHoklch(37.99% 0.185 272.2)
XYZxyz(8.2583, 4.7866, 34.6641)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282BA2 #A29F28
analogous
#2868A2 #282BA2 #6228A2
triadic
#282BA2 #A2282B #2BA228
tetradic
#282BA2 #A22868 #A29F28 #28A262
square
#282BA2 #A22868 #A29F28 #28A262
split-complementary
#282BA2 #A26228 #68A228
monochromatic
#101140 #1C1E71 #282BA2 #393DCE #6A6DDA

Accessibility & contrast

On white

10.73
#282BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#282BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282BA2
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282BA2#FFFFFF#000000##FFFFFF
##282BA21.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #282ba2;
/* rgb */ color: rgb(40, 43, 162);
/* oklch */ color: oklch(38.0% 0.185 272.2);
Tailwind
colors: {
  custom: {
    50: '#7665bf',
    500: '#282ba2',
    950: '#000000',
  },
}
SCSS
$custom: #282ba2;
$custom-light: #7665bf;
$custom-dark: #000000;
JSON
{
  "hex": "#282ba2",
  "rgb": {
    "r": 40,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 238.525,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37988,
    "c": 0.1852,
    "h": 272.2
  },
  "luminance": 0.04788
}

Semantic roles & 50–950 ramp

primary
#282BA2
secondary
#C1BE65
accent
#E044E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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