#2A27A2#2A27A2

#2A27A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.189 H 273.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2A27A2
RGBrgb(42, 39, 162)
HSLhsl(241, 61%, 39%)
HSVhsv(241, 76%, 64%)
CMYKcmyk(74.1%, 75.9%, 0%, 36.5%)
CIE-LABlab(25.42, 42.42, -65.10)
CIE-LCHlch(25.42, 77.70, 303.09°)
OKLaboklab(37.52% 0.0116 -0.1883)
OKLCHoklch(37.52% 0.189 273.5)
XYZxyz(8.1998, 4.5511, 34.6217)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27A2 #9FA227
analogous
#2762A2 #2A27A2 #6727A2
triadic
#2A27A2 #A22A27 #27A22A
tetradic
#2A27A2 #A22762 #9FA227 #27A267
square
#2A27A2 #A22762 #9FA227 #27A267
split-complementary
#2A27A2 #A26727 #62A227
monochromatic
#100F3F #1D1B71 #2A27A2 #3B37CF #6B69DB

Accessibility & contrast

On white

10.99
#2A27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27A2
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27A2#FFFFFF#000000##FFFFFF
##2A27A21.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a27a2;
/* rgb */ color: rgb(42, 39, 162);
/* oklch */ color: oklch(37.5% 0.189 273.5);
Tailwind
colors: {
  custom: {
    50: '#7763bf',
    500: '#2a27a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a27a2;
$custom-light: #7763bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27a2",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 241.463,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37521,
    "c": 0.18871,
    "h": 273.5
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#2A27A2
secondary
#BFC164
accent
#E443E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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