#2A27AA#2A27AA

#2A27AA is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.4% C 0.198 H 272.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2A27AA
RGBrgb(42, 39, 170)
HSLhsl(241, 63%, 41%)
HSVhsv(241, 77%, 67%)
CMYKcmyk(75.3%, 77.1%, 0%, 33.3%)
CIE-LABlab(26.29, 45.06, -68.50)
CIE-LCHlch(26.29, 81.99, 303.34°)
OKLaboklab(38.4% 0.01 -0.1982)
OKLCHoklch(38.4% 0.198 272.9)
XYZxyz(8.9336, 4.8446, 38.4867)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27AA #A7AA27
analogous
#2765AA #2A27AA #6B27AA
triadic
#2A27AA #AA2A27 #27AA2A
tetradic
#2A27AA #AA2765 #A7AA27 #27AA6B
square
#2A27AA #AA2765 #A7AA27 #27AA6B
split-complementary
#2A27AA #AA6B27 #65AA27
monochromatic
#111046 #1E1C78 #2A27AA #3F3CD2 #706EDE

Accessibility & contrast

On white

10.66
#2A27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27AA
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27AA#FFFFFF#000000##FFFFFF
##2A27AA1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a27aa;
/* rgb */ color: rgb(42, 39, 170);
/* oklch */ color: oklch(38.4% 0.198 272.9);
Tailwind
colors: {
  custom: {
    50: '#7963c5',
    500: '#2a27aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a27aa;
$custom-light: #7963c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27aa",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 241.374,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38395,
    "c": 0.19848,
    "h": 272.9
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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