#2C27A2#2C27A2

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

Color values

HEX#2C27A2
RGBrgb(44, 39, 162)
HSLhsl(242, 61%, 39%)
HSVhsv(242, 76%, 64%)
CMYKcmyk(72.8%, 75.9%, 0%, 36.5%)
CIE-LABlab(25.55, 42.60, -64.88)
CIE-LCHlch(25.55, 77.62, 303.29°)
OKLaboklab(37.65% 0.0141 -0.1877)
OKLCHoklch(37.65% 0.188 274.3)
XYZxyz(8.2836, 4.5943, 34.6257)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27A2 #9DA227
analogous
#2760A2 #2C27A2 #6A27A2
triadic
#2C27A2 #A22C27 #27A22C
tetradic
#2C27A2 #A22760 #9DA227 #27A26A
square
#2C27A2 #A22760 #9DA227 #27A26A
split-complementary
#2C27A2 #A26A27 #60A227
monochromatic
#110F3F #1F1B71 #2C27A2 #3D37CF #6D69DB

Accessibility & contrast

On white

10.94
#2C27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C27A2
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27A2#FFFFFF#000000##FFFFFF
##2C27A21.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c27a2;
/* rgb */ color: rgb(44, 39, 162);
/* oklch */ color: oklch(37.6% 0.188 274.3);
Tailwind
colors: {
  custom: {
    50: '#7863bf',
    500: '#2c27a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c27a2;
$custom-light: #7863bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27a2",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 242.439,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37648,
    "c": 0.18819,
    "h": 274.3
  },
  "luminance": 0.04595
}

Semantic roles & 50–950 ramp

primary
#2C27A2
secondary
#BDC164
accent
#E443DE
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2C27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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