#2D27A1#2D27A1

#2D27A1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.187 H 274.8°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2D27A1
RGBrgb(45, 39, 161)
HSLhsl(243, 61%, 39%)
HSVhsv(243, 76%, 63%)
CMYKcmyk(72%, 75.8%, 0%, 36.9%)
CIE-LABlab(25.51, 42.37, -64.34)
CIE-LCHlch(25.51, 77.04, 303.37°)
OKLaboklab(37.61% 0.0156 -0.186)
OKLCHoklch(37.61% 0.187 274.8)
XYZxyz(8.2386, 4.5813, 34.1614)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27A1 #9BA127
analogous
#275EA1 #2D27A1 #6A27A1
triadic
#2D27A1 #A12D27 #27A12D
tetradic
#2D27A1 #A1275E #9BA127 #27A16A
square
#2D27A1 #A1275E #9BA127 #27A16A
split-complementary
#2D27A1 #A16A27 #5EA127
monochromatic
#110F3E #1F1B70 #2D27A1 #3E37CE #6E68DA

Accessibility & contrast

On white

10.96
#2D27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D27A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D27A1
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27A1#FFFFFF#000000##FFFFFF
##2D27A11.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d27a1;
/* rgb */ color: rgb(45, 39, 161);
/* oklch */ color: oklch(37.6% 0.187 274.8);
Tailwind
colors: {
  custom: {
    50: '#7863be',
    500: '#2d27a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d27a1;
$custom-light: #7863be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27a1",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 242.951,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37607,
    "c": 0.1867,
    "h": 274.8
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#2D27A1
secondary
#BCC063
accent
#E444DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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