#2D27B8#2D27B8

#2D27B8 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.214 H 272.8°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2D27B8
RGBrgb(45, 39, 184)
HSLhsl(242, 65%, 44%)
HSVhsv(242, 79%, 72%)
CMYKcmyk(75.5%, 78.8%, 0%, 27.8%)
CIE-LABlab(28.03, 49.80, -73.99)
CIE-LCHlch(28.03, 89.18, 303.94°)
OKLaboklab(40.12% 0.0106 -0.2141)
OKLCHoklch(40.12% 0.214 272.8)
XYZxyz(10.4565, 5.4685, 45.8426)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27B8 #B2B827
analogous
#2769B8 #2D27B8 #7527B8
triadic
#2D27B8 #B82D27 #27B82D
tetradic
#2D27B8 #B82769 #B2B827 #27B875
square
#2D27B8 #B82769 #B2B827 #27B875
split-complementary
#2D27B8 #B87527 #69B827
monochromatic
#141253 #211C86 #2D27B8 #4B45D8 #7C77E2

Accessibility & contrast

On white

10.03
#2D27B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2D27B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D27B8
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27B8#FFFFFF#000000##FFFFFF
##2D27B81.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BC
Deuteranopia (green-blind)
#003BB6
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d27b8;
/* rgb */ color: rgb(45, 39, 184);
/* oklch */ color: oklch(40.1% 0.214 272.8);
Tailwind
colors: {
  custom: {
    50: '#7e64cf',
    500: '#2d27b8',
    950: '#000000',
  },
}
SCSS
$custom: #2d27b8;
$custom-light: #7e64cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27b8",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 242.483,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40123,
    "c": 0.21435,
    "h": 272.8
  },
  "luminance": 0.0547
}

Semantic roles & 50–950 ramp

primary
#2D27B8
secondary
#C6CA71
accent
#E840E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2D27B8

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

Preview Lab → · Contrast checker → · Palette generator →

#2D27B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva