#2B27AC#2B27AC

#2B27AC is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.7% C 0.201 H 273.1°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2B27AC
RGBrgb(43, 39, 172)
HSLhsl(242, 63%, 41%)
HSVhsv(242, 77%, 67%)
CMYKcmyk(75%, 77.3%, 0%, 32.5%)
CIE-LABlab(26.57, 45.80, -69.24)
CIE-LCHlch(26.57, 83.01, 303.48°)
OKLaboklab(38.67% 0.0108 -0.2003)
OKLCHoklch(38.67% 0.201 273.1)
XYZxyz(9.1657, 4.9422, 39.4926)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27AC #A8AC27
analogous
#2766AC #2B27AC #6E27AC
triadic
#2B27AC #AC2B27 #27AC2B
tetradic
#2B27AC #AC2766 #A8AC27 #27AC6E
square
#2B27AC #AC2766 #A8AC27 #27AC6E
split-complementary
#2B27AC #AC6E27 #66AC27
monochromatic
#121048 #1F1C7A #2B27AC #423DD3 #726FDE

Accessibility & contrast

On white

10.56
#2B27AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2B27AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27AC
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27AC#FFFFFF#000000##FFFFFF
##2B27AC1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B0
Deuteranopia (green-blind)
#0038AA
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b27ac;
/* rgb */ color: rgb(43, 39, 172);
/* oklch */ color: oklch(38.7% 0.201 273.1);
Tailwind
colors: {
  custom: {
    50: '#7a64c6',
    500: '#2b27ac',
    950: '#000000',
  },
}
SCSS
$custom: #2b27ac;
$custom-light: #7a64c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27ac",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 241.805,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.20064,
    "h": 273.1
  },
  "luminance": 0.04943
}

Semantic roles & 50–950 ramp

primary
#2B27AC
secondary
#C2C56A
accent
#E642E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2B27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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