#2A27B8#2A27B8

#2A27B8 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.0% C 0.215 H 271.9°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#2A27B8
RGBrgb(42, 39, 184)
HSLhsl(241, 65%, 44%)
HSVhsv(241, 79%, 72%)
CMYKcmyk(77.2%, 78.8%, 0%, 27.8%)
CIE-LABlab(27.85, 49.58, -74.28)
CIE-LCHlch(27.85, 89.31, 303.72°)
OKLaboklab(39.95% 0.007 -0.215)
OKLCHoklch(39.95% 0.215 271.9)
XYZxyz(10.3292, 5.4028, 45.8366)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27B8 #B5B827
analogous
#276CB8 #2A27B8 #7227B8
triadic
#2A27B8 #B82A27 #27B82A
tetradic
#2A27B8 #B8276C #B5B827 #27B872
square
#2A27B8 #B8276C #B5B827 #27B872
split-complementary
#2A27B8 #B87227 #6CB827
monochromatic
#131253 #1E1C86 #2A27B8 #4845D8 #7977E2

Accessibility & contrast

On white

10.09
#2A27B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2A27B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27B8
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27B8#FFFFFF#000000##FFFFFF
##2A27B81.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BC
Deuteranopia (green-blind)
#003AB6
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a27b8;
/* rgb */ color: rgb(42, 39, 184);
/* oklch */ color: oklch(40.0% 0.215 271.9);
Tailwind
colors: {
  custom: {
    50: '#7d64cf',
    500: '#2a27b8',
    950: '#000000',
  },
}
SCSS
$custom: #2a27b8;
$custom-light: #7d64cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27b8",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 241.241,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.39952,
    "c": 0.21514,
    "h": 271.9
  },
  "luminance": 0.05404
}

Semantic roles & 50–950 ramp

primary
#2A27B8
secondary
#C8CA71
accent
#E840E5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2A27B8

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

Preview Lab → · Contrast checker → · Palette generator →

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