#2E27A1#2E27A1

#2E27A1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.186 H 275.2°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2E27A1
RGBrgb(46, 39, 161)
HSLhsl(243, 61%, 39%)
HSVhsv(243, 76%, 63%)
CMYKcmyk(71.4%, 75.8%, 0%, 36.9%)
CIE-LABlab(25.58, 42.47, -64.22)
CIE-LCHlch(25.58, 76.99, 303.48°)
OKLaboklab(37.67% 0.0169 -0.1857)
OKLCHoklch(37.67% 0.186 275.2)
XYZxyz(8.2831, 4.6043, 34.1635)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E27A1 #9AA127
analogous
#275DA1 #2E27A1 #6B27A1
triadic
#2E27A1 #A12E27 #27A12E
tetradic
#2E27A1 #A1275D #9AA127 #27A16B
square
#2E27A1 #A1275D #9AA127 #27A16B
split-complementary
#2E27A1 #A16B27 #5DA127
monochromatic
#120F3E #201B70 #2E27A1 #3F37CE #6F68DA

Accessibility & contrast

On white

10.93
#2E27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2E27A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E27A1
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E27A1#FFFFFF#000000##FFFFFF
##2E27A11.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e27a1;
/* rgb */ color: rgb(46, 39, 161);
/* oklch */ color: oklch(37.7% 0.186 275.2);
Tailwind
colors: {
  custom: {
    50: '#7963be',
    500: '#2e27a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e27a1;
$custom-light: #7963be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e27a1",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 243.443,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37674,
    "c": 0.18646,
    "h": 275.2
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

primary
#2E27A1
secondary
#BBC063
accent
#E444DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2E27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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