#2D27C1#2D27C1

#2D27C1 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.1% C 0.225 H 272.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2D27C1
RGBrgb(45, 39, 193)
HSLhsl(242, 66%, 45%)
HSVhsv(242, 80%, 76%)
CMYKcmyk(76.7%, 79.8%, 0%, 24.3%)
CIE-LABlab(29.05, 52.61, -77.62)
CIE-LCHlch(29.05, 93.77, 304.13°)
OKLaboklab(41.13% 0.0086 -0.2246)
OKLCHoklch(41.13% 0.225 272.2)
XYZxyz(11.4301, 5.8579, 50.9700)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27C1 #BBC127
analogous
#276EC1 #2D27C1 #7A27C1
triadic
#2D27C1 #C12D27 #27C12D
tetradic
#2D27C1 #C1276E #BBC127 #27C17A
square
#2D27C1 #C1276E #BBC127 #27C17A
split-complementary
#2D27C1 #C17A27 #6EC127
monochromatic
#15125B #211D8E #2D27C1 #504BDB #827EE5

Accessibility & contrast

On white

9.67
#2D27C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2D27C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D27C1
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27C1#FFFFFF#000000##FFFFFF
##2D27C11.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC5
Deuteranopia (green-blind)
#003DBE
Tritanopia (blue-blind)
#005774
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d27c1;
/* rgb */ color: rgb(45, 39, 193);
/* oklch */ color: oklch(41.1% 0.225 272.2);
Tailwind
colors: {
  custom: {
    50: '#8065d5',
    500: '#2d27c1',
    950: '#000000',
  },
}
SCSS
$custom: #2d27c1;
$custom-light: #8065d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27c1",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 193
  },
  "hsl": {
    "h": 242.338,
    "s": 66.379,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41134,
    "c": 0.22479,
    "h": 272.2
  },
  "luminance": 0.05859
}

Semantic roles & 50–950 ramp

primary
#2D27C1
secondary
#CACD77
accent
#E93EE3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2D27C1

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

Preview Lab → · Contrast checker → · Palette generator →

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