#2827B4#2827B4

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

Color values

HEX#2827B4
RGBrgb(40, 39, 180)
HSLhsl(240, 64%, 43%)
HSVhsv(240, 78%, 71%)
CMYKcmyk(77.8%, 78.3%, 0%, 29.4%)
CIE-LABlab(27.29, 48.16, -72.84)
CIE-LCHlch(27.29, 87.33, 303.47°)
OKLaboklab(39.39% 0.0056 -0.2109)
OKLCHoklch(39.39% 0.211 271.5)
XYZxyz(9.8360, 5.1964, 43.6558)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827B4 #B3B427
analogous
#276CB4 #2827B4 #6F27B4
triadic
#2827B4 #B42827 #27B428
tetradic
#2827B4 #B4276C #B3B427 #27B46F
square
#2827B4 #B4276C #B3B427 #27B46F
split-complementary
#2827B4 #B46F27 #6CB427
monochromatic
#12114F #1D1C82 #2827B4 #4342D6 #7574E1

Accessibility & contrast

On white

10.30
#2827B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2827B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827B4
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827B4#FFFFFF#000000##FFFFFF
##2827B41.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#0039B2
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2827b4;
/* rgb */ color: rgb(40, 39, 180);
/* oklch */ color: oklch(39.4% 0.211 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b64cc',
    500: '#2827b4',
    950: '#000000',
  },
}
SCSS
$custom: #2827b4;
$custom-light: #7b64cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2827b4",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 240.426,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39393,
    "c": 0.21095,
    "h": 271.5
  },
  "luminance": 0.05197
}

Semantic roles & 50–950 ramp

primary
#2827B4
secondary
#C8C86F
accent
#E740E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2827B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2827B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva