#2C27B2#2C27B2

#2C27B2 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.4% C 0.208 H 273.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2C27B2
RGBrgb(44, 39, 178)
HSLhsl(242, 64%, 43%)
HSVhsv(242, 78%, 70%)
CMYKcmyk(75.3%, 78.1%, 0%, 30.2%)
CIE-LABlab(27.30, 47.81, -71.63)
CIE-LCHlch(27.30, 86.12, 303.73°)
OKLaboklab(39.4% 0.0107 -0.2073)
OKLCHoklch(39.4% 0.208 273)
XYZxyz(9.7974, 5.1998, 42.5982)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27B2 #ADB227
analogous
#2768B2 #2C27B2 #7127B2
triadic
#2C27B2 #B22C27 #27B22C
tetradic
#2C27B2 #B22768 #ADB227 #27B271
square
#2C27B2 #B22768 #ADB227 #27B271
split-complementary
#2C27B2 #B27127 #68B227
monochromatic
#13114E #201C80 #2C27B2 #4641D5 #7773E0

Accessibility & contrast

On white

10.29
#2C27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2C27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27B2
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27B2#FFFFFF#000000##FFFFFF
##2C27B21.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003AB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c27b2;
/* rgb */ color: rgb(44, 39, 178);
/* oklch */ color: oklch(39.4% 0.208 273.0);
Tailwind
colors: {
  custom: {
    50: '#7c64ca',
    500: '#2c27b2',
    950: '#000000',
  },
}
SCSS
$custom: #2c27b2;
$custom-light: #7c64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27b2",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 242.158,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39397,
    "c": 0.20755,
    "h": 273
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

primary
#2C27B2
secondary
#C4C86D
accent
#E741E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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