#2A27AF#2A27AF

#2A27AF is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.9% C 0.204 H 272.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2A27AF
RGBrgb(42, 39, 175)
HSLhsl(241, 64%, 42%)
HSVhsv(241, 78%, 69%)
CMYKcmyk(76%, 77.7%, 0%, 31.4%)
CIE-LABlab(26.84, 46.69, -70.59)
CIE-LCHlch(26.84, 84.63, 303.48°)
OKLaboklab(38.95% 0.0089 -0.2043)
OKLCHoklch(38.95% 0.205 272.5)
XYZxyz(9.4156, 5.0374, 41.0252)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27AF #ACAF27
analogous
#2768AF #2A27AF #6E27AF
triadic
#2A27AF #AF2A27 #27AF2A
tetradic
#2A27AF #AF2768 #ACAF27 #27AF6E
square
#2A27AF #AF2768 #ACAF27 #27AF6E
split-complementary
#2A27AF #AF6E27 #68AF27
monochromatic
#12114B #1E1C7D #2A27AF #423FD4 #7371DF

Accessibility & contrast

On white

10.46
#2A27AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A27AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27AF
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27AF#FFFFFF#000000##FFFFFF
##2A27AF1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#0039AD
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a27af;
/* rgb */ color: rgb(42, 39, 175);
/* oklch */ color: oklch(38.9% 0.204 272.5);
Tailwind
colors: {
  custom: {
    50: '#7b64c8',
    500: '#2a27af',
    950: '#000000',
  },
}
SCSS
$custom: #2a27af;
$custom-light: #7b64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27af",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 241.324,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.38947,
    "c": 0.2045,
    "h": 272.5
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#2A27AF
secondary
#C4C66B
accent
#E741E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A27AF

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

Preview Lab → · Contrast checker → · Palette generator →

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