#2D27AC#2D27AC

#2D27AC is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.8% C 0.200 H 273.8°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2D27AC
RGBrgb(45, 39, 172)
HSLhsl(243, 63%, 41%)
HSVhsv(243, 77%, 67%)
CMYKcmyk(73.8%, 77.3%, 0%, 32.5%)
CIE-LABlab(26.70, 45.97, -69.02)
CIE-LCHlch(26.70, 82.93, 303.66°)
OKLaboklab(38.8% 0.0132 -0.1997)
OKLCHoklch(38.8% 0.2 273.8)
XYZxyz(9.2516, 4.9865, 39.4967)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27AC #A6AC27
analogous
#2764AC #2D27AC #7027AC
triadic
#2D27AC #AC2D27 #27AC2D
tetradic
#2D27AC #AC2764 #A6AC27 #27AC70
square
#2D27AC #AC2764 #A6AC27 #27AC70
split-complementary
#2D27AC #AC7027 #64AC27
monochromatic
#131048 #201C7A #2D27AC #443DD3 #746FDE

Accessibility & contrast

On white

10.51
#2D27AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2D27AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D27AC
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27AC#FFFFFF#000000##FFFFFF
##2D27AC1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B0
Deuteranopia (green-blind)
#0039AA
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d27ac;
/* rgb */ color: rgb(45, 39, 172);
/* oklch */ color: oklch(38.8% 0.200 273.8);
Tailwind
colors: {
  custom: {
    50: '#7b64c6',
    500: '#2d27ac',
    950: '#000000',
  },
}
SCSS
$custom: #2d27ac;
$custom-light: #7b64c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27ac",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 242.707,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38797,
    "c": 0.20012,
    "h": 273.8
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#2D27AC
secondary
#C1C56A
accent
#E642DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2D27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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