#2C27A8#2C27A8

#2C27A8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.196 H 273.8°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2C27A8
RGBrgb(44, 39, 168)
HSLhsl(242, 62%, 41%)
HSVhsv(242, 77%, 66%)
CMYKcmyk(73.8%, 76.8%, 0%, 34.1%)
CIE-LABlab(26.19, 44.58, -67.44)
CIE-LCHlch(26.19, 80.84, 303.46°)
OKLaboklab(38.3% 0.0129 -0.1951)
OKLCHoklch(38.3% 0.196 273.8)
XYZxyz(8.8298, 4.8128, 37.5018)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27A8 #A3A827
analogous
#2762A8 #2C27A8 #6D27A8
triadic
#2C27A8 #A82C27 #27A82C
tetradic
#2C27A8 #A82762 #A3A827 #27A86D
square
#2C27A8 #A82762 #A3A827 #27A86D
split-complementary
#2C27A8 #A86D27 #62A827
monochromatic
#121045 #1F1B76 #2C27A8 #413BD1 #716CDD

Accessibility & contrast

On white

10.70
#2C27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2C27A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27A8
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27A8#FFFFFF#000000##FFFFFF
##2C27A81.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c27a8;
/* rgb */ color: rgb(44, 39, 168);
/* oklch */ color: oklch(38.3% 0.196 273.8);
Tailwind
colors: {
  custom: {
    50: '#7a63c3',
    500: '#2c27a8',
    950: '#000000',
  },
}
SCSS
$custom: #2c27a8;
$custom-light: #7a63c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27a8",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 242.326,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38298,
    "c": 0.19554,
    "h": 273.8
  },
  "luminance": 0.04814
}

Semantic roles & 50–950 ramp

primary
#2C27A8
secondary
#C0C367
accent
#E542DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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