#2A27A5#2A27A5

#2A27A5 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.192 H 273.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2A27A5
RGBrgb(42, 39, 165)
HSLhsl(241, 62%, 40%)
HSVhsv(241, 76%, 65%)
CMYKcmyk(74.5%, 76.4%, 0%, 35.3%)
CIE-LABlab(25.74, 43.41, -66.39)
CIE-LCHlch(25.74, 79.32, 303.18°)
OKLaboklab(37.85% 0.011 -0.1921)
OKLCHoklch(37.85% 0.192 273.3)
XYZxyz(8.4696, 4.6590, 36.0429)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27A5 #A2A527
analogous
#2763A5 #2A27A5 #6927A5
triadic
#2A27A5 #A52A27 #27A52A
tetradic
#2A27A5 #A52763 #A2A527 #27A569
square
#2A27A5 #A52763 #A2A527 #27A569
split-complementary
#2A27A5 #A56927 #63A527
monochromatic
#111042 #1D1B74 #2A27A5 #3D39D0 #6D6ADC

Accessibility & contrast

On white

10.87
#2A27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27A5
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27A5#FFFFFF#000000##FFFFFF
##2A27A51.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a27a5;
/* rgb */ color: rgb(42, 39, 165);
/* oklch */ color: oklch(37.8% 0.192 273.3);
Tailwind
colors: {
  custom: {
    50: '#7863c1',
    500: '#2a27a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a27a5;
$custom-light: #7863c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27a5",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 241.429,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.37847,
    "c": 0.19239,
    "h": 273.3
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#2A27A5
secondary
#C0C266
accent
#E543E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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