#2D27AB#2D27AB

#2D27AB is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.7% C 0.199 H 273.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2D27AB
RGBrgb(45, 39, 171)
HSLhsl(243, 63%, 41%)
HSVhsv(243, 77%, 67%)
CMYKcmyk(73.7%, 77.2%, 0%, 32.9%)
CIE-LABlab(26.59, 45.64, -68.60)
CIE-LCHlch(26.59, 82.40, 303.64°)
OKLaboklab(38.69% 0.0135 -0.1985)
OKLCHoklch(38.69% 0.199 273.9)
XYZxyz(9.1559, 4.9483, 38.9928)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27AB #A5AB27
analogous
#2763AB #2D27AB #6F27AB
triadic
#2D27AB #AB2D27 #27AB2D
tetradic
#2D27AB #AB2763 #A5AB27 #27AB6F
square
#2D27AB #AB2763 #A5AB27 #27AB6F
split-complementary
#2D27AB #AB6F27 #63AB27
monochromatic
#131047 #201C79 #2D27AB #433DD3 #736EDE

Accessibility & contrast

On white

10.55
#2D27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2D27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D27AB
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27AB#FFFFFF#000000##FFFFFF
##2D27AB1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0039A9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d27ab;
/* rgb */ color: rgb(45, 39, 171);
/* oklch */ color: oklch(38.7% 0.199 273.9);
Tailwind
colors: {
  custom: {
    50: '#7b64c5',
    500: '#2d27ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d27ab;
$custom-light: #7b64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27ab",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 242.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38688,
    "c": 0.19892,
    "h": 273.9
  },
  "luminance": 0.04949
}

Semantic roles & 50–950 ramp

primary
#2D27AB
secondary
#C1C569
accent
#E642DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2D27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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