#2D27AE#2D27AE

#2D27AE is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.0% C 0.203 H 273.6°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2D27AE
RGBrgb(45, 39, 174)
HSLhsl(243, 63%, 42%)
HSVhsv(243, 78%, 68%)
CMYKcmyk(74.1%, 77.6%, 0%, 31.8%)
CIE-LABlab(26.92, 46.61, -69.86)
CIE-LCHlch(26.92, 83.98, 303.71°)
OKLaboklab(39.02% 0.0128 -0.2021)
OKLCHoklch(39.02% 0.203 273.6)
XYZxyz(9.4451, 5.0640, 40.5159)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27AE #A8AE27
analogous
#2764AE #2D27AE #7127AE
triadic
#2D27AE #AE2D27 #27AE2D
tetradic
#2D27AE #AE2764 #A8AE27 #27AE71
square
#2D27AE #AE2764 #A8AE27 #27AE71
split-complementary
#2D27AE #AE7127 #64AE27
monochromatic
#13114A #201C7C #2D27AE #453ED4 #7570DF

Accessibility & contrast

On white

10.43
#2D27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2D27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D27AE
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27AE#FFFFFF#000000##FFFFFF
##2D27AE1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#0039AC
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d27ae;
/* rgb */ color: rgb(45, 39, 174);
/* oklch */ color: oklch(39.0% 0.203 273.6);
Tailwind
colors: {
  custom: {
    50: '#7b64c8',
    500: '#2d27ae',
    950: '#000000',
  },
}
SCSS
$custom: #2d27ae;
$custom-light: #7b64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27ae",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 242.667,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39016,
    "c": 0.20251,
    "h": 273.6
  },
  "luminance": 0.05065
}

Semantic roles & 50–950 ramp

primary
#2D27AE
secondary
#C2C66B
accent
#E641DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2D27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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