#2828B3#2828B3

#2828B3 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.4% C 0.209 H 271.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2828B3
RGBrgb(40, 40, 179)
HSLhsl(240, 63%, 43%)
HSVhsv(240, 78%, 70%)
CMYKcmyk(77.7%, 77.7%, 0%, 29.8%)
CIE-LABlab(27.36, 47.31, -72.13)
CIE-LCHlch(27.36, 86.26, 303.26°)
OKLaboklab(39.41% 0.0054 -0.2088)
OKLCHoklch(39.41% 0.209 271.5)
XYZxyz(9.7678, 5.2223, 43.1323)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828B3 #B3B328
analogous
#286DB3 #2828B3 #6D28B3
triadic
#2828B3 #B32828 #28B328
tetradic
#2828B3 #B3286D #B3B328 #28B36D
square
#2828B3 #B3286D #B3B328 #28B36D
split-complementary
#2828B3 #B36D28 #6DB328
monochromatic
#12124F #1D1D81 #2828B3 #4343D5 #7575E0

Accessibility & contrast

On white

10.27
#2828B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2828B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828B3
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828B3#FFFFFF#000000##FFFFFF
##2828B31.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B7
Deuteranopia (green-blind)
#0039B1
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2828b3;
/* rgb */ color: rgb(40, 40, 179);
/* oklch */ color: oklch(39.4% 0.209 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b64cb',
    500: '#2828b3',
    950: '#000000',
  },
}
SCSS
$custom: #2828b3;
$custom-light: #7b64cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2828b3",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 240,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39411,
    "c": 0.20889,
    "h": 271.5
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#2828B3
secondary
#C8C86F
accent
#E641E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2828B3

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

Preview Lab → · Contrast checker → · Palette generator →

#2828B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva