#2A27A9#2A27A9

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

Color values

HEX#2A27A9
RGBrgb(42, 39, 169)
HSLhsl(241, 63%, 41%)
HSVhsv(241, 77%, 66%)
CMYKcmyk(75.1%, 76.9%, 0%, 33.7%)
CIE-LABlab(26.18, 44.73, -68.08)
CIE-LCHlch(26.18, 81.46, 303.31°)
OKLaboklab(38.29% 0.0102 -0.197)
OKLCHoklch(38.29% 0.197 273)
XYZxyz(8.8394, 4.8069, 37.9904)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27A9 #A6A927
analogous
#2765A9 #2A27A9 #6B27A9
triadic
#2A27A9 #A92A27 #27A92A
tetradic
#2A27A9 #A92765 #A6A927 #27A96B
square
#2A27A9 #A92765 #A6A927 #27A96B
split-complementary
#2A27A9 #A96B27 #65A927
monochromatic
#111046 #1E1C77 #2A27A9 #3F3BD2 #706DDD

Accessibility & contrast

On white

10.71
#2A27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A27A9
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27A9#FFFFFF#000000##FFFFFF
##2A27A91.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#0038A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a27a9;
/* rgb */ color: rgb(42, 39, 169);
/* oklch */ color: oklch(38.3% 0.197 273.0);
Tailwind
colors: {
  custom: {
    50: '#7963c4',
    500: '#2a27a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a27a9;
$custom-light: #7963c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27a9",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 241.385,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38285,
    "c": 0.19727,
    "h": 273
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#2A27A9
secondary
#C2C468
accent
#E642E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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