#2A27A6#2A27A6

#2A27A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.194 H 273.2°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2A27A6
RGBrgb(42, 39, 166)
HSLhsl(241, 62%, 40%)
HSVhsv(241, 77%, 65%)
CMYKcmyk(74.7%, 76.5%, 0%, 34.9%)
CIE-LABlab(25.85, 43.74, -66.81)
CIE-LCHlch(25.85, 79.86, 303.21°)
OKLaboklab(37.96% 0.0108 -0.1933)
OKLCHoklch(37.96% 0.194 273.2)
XYZxyz(8.5610, 4.6956, 36.5242)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27A6 #A3A627
analogous
#2764A6 #2A27A6 #6927A6
triadic
#2A27A6 #A62A27 #27A62A
tetradic
#2A27A6 #A62764 #A3A627 #27A669
square
#2A27A6 #A62764 #A3A627 #27A669
split-complementary
#2A27A6 #A66927 #64A627
monochromatic
#111043 #1D1B74 #2A27A6 #3D3AD1 #6E6BDC

Accessibility & contrast

On white

10.83
#2A27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27A6
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27A6#FFFFFF#000000##FFFFFF
##2A27A61.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a27a6;
/* rgb */ color: rgb(42, 39, 166);
/* oklch */ color: oklch(38.0% 0.194 273.2);
Tailwind
colors: {
  custom: {
    50: '#7863c2',
    500: '#2a27a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a27a6;
$custom-light: #7863c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27a6",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 241.417,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37956,
    "c": 0.19362,
    "h": 273.2
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#2A27A6
secondary
#C0C366
accent
#E543E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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