#2C27A5#2C27A5

#2C27A5 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.192 H 274.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2C27A5
RGBrgb(44, 39, 165)
HSLhsl(242, 62%, 40%)
HSVhsv(242, 76%, 65%)
CMYKcmyk(73.3%, 76.4%, 0%, 35.3%)
CIE-LABlab(25.87, 43.59, -66.17)
CIE-LCHlch(25.87, 79.24, 303.38°)
OKLaboklab(37.97% 0.0135 -0.1914)
OKLCHoklch(37.97% 0.192 274)
XYZxyz(8.5535, 4.7023, 36.0469)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27A5 #A0A527
analogous
#2761A5 #2C27A5 #6B27A5
triadic
#2C27A5 #A52C27 #27A52C
tetradic
#2C27A5 #A52761 #A0A527 #27A56B
square
#2C27A5 #A52761 #A0A527 #27A56B
split-complementary
#2C27A5 #A56B27 #61A527
monochromatic
#121042 #1F1B74 #2C27A5 #3F39D0 #6F6ADC

Accessibility & contrast

On white

10.82
#2C27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2C27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27A5
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27A5#FFFFFF#000000##FFFFFF
##2C27A51.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c27a5;
/* rgb */ color: rgb(44, 39, 165);
/* oklch */ color: oklch(38.0% 0.192 274.0);
Tailwind
colors: {
  custom: {
    50: '#7963c1',
    500: '#2c27a5',
    950: '#000000',
  },
}
SCSS
$custom: #2c27a5;
$custom-light: #7963c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27a5",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 242.381,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.37972,
    "c": 0.19188,
    "h": 274
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#2C27A5
secondary
#BFC266
accent
#E543DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2C27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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