#2827B3#2827B3

#2827B3 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.3% C 0.210 H 271.6°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2827B3
RGBrgb(40, 39, 179)
HSLhsl(240, 64%, 43%)
HSVhsv(240, 78%, 70%)
CMYKcmyk(77.7%, 78.2%, 0%, 29.8%)
CIE-LABlab(27.17, 47.84, -72.43)
CIE-LCHlch(27.17, 86.81, 303.44°)
OKLaboklab(39.28% 0.0058 -0.2097)
OKLCHoklch(39.28% 0.21 271.6)
XYZxyz(9.7345, 5.1558, 43.1212)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827B3 #B2B327
analogous
#276CB3 #2827B3 #6E27B3
triadic
#2827B3 #B32827 #27B328
tetradic
#2827B3 #B3276C #B2B327 #27B36E
square
#2827B3 #B3276C #B2B327 #27B36E
split-complementary
#2827B3 #B36E27 #6CB327
monochromatic
#12114E #1D1C81 #2827B3 #4341D6 #7574E1

Accessibility & contrast

On white

10.34
#2827B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2827B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827B3
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827B3#FFFFFF#000000##FFFFFF
##2827B31.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2827b3;
/* rgb */ color: rgb(40, 39, 179);
/* oklch */ color: oklch(39.3% 0.210 271.6);
Tailwind
colors: {
  custom: {
    50: '#7b64cb',
    500: '#2827b3',
    950: '#000000',
  },
}
SCSS
$custom: #2827b3;
$custom-light: #7b64cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2827b3",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 240.429,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39281,
    "c": 0.20977,
    "h": 271.6
  },
  "luminance": 0.05157
}

Semantic roles & 50–950 ramp

primary
#2827B3
secondary
#C7C86E
accent
#E741E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2827B3

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

Preview Lab → · Contrast checker → · Palette generator →

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