#2A27A3#2A27A3

#2A27A3 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.190 H 273.4°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2A27A3
RGBrgb(42, 39, 163)
HSLhsl(241, 61%, 40%)
HSVhsv(241, 76%, 64%)
CMYKcmyk(74.2%, 76.1%, 0%, 36.1%)
CIE-LABlab(25.52, 42.75, -65.53)
CIE-LCHlch(25.52, 78.24, 303.12°)
OKLaboklab(37.63% 0.0114 -0.1896)
OKLCHoklch(37.63% 0.19 273.4)
XYZxyz(8.2890, 4.5868, 35.0917)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27A3 #A0A327
analogous
#2762A3 #2A27A3 #6827A3
triadic
#2A27A3 #A32A27 #27A32A
tetradic
#2A27A3 #A32762 #A0A327 #27A368
square
#2A27A3 #A32762 #A0A327 #27A368
split-complementary
#2A27A3 #A36827 #62A327
monochromatic
#110F40 #1D1B72 #2A27A3 #3C38CF #6C69DB

Accessibility & contrast

On white

10.95
#2A27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27A3
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27A3#FFFFFF#000000##FFFFFF
##2A27A31.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0036A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a27a3;
/* rgb */ color: rgb(42, 39, 163);
/* oklch */ color: oklch(37.6% 0.190 273.4);
Tailwind
colors: {
  custom: {
    50: '#7863c0',
    500: '#2a27a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a27a3;
$custom-light: #7863c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27a3",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 241.452,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3763,
    "c": 0.18994,
    "h": 273.4
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#2A27A3
secondary
#BFC164
accent
#E443E1
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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