#2E27A3#2E27A3

#2E27A3 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.189 H 275.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2E27A3
RGBrgb(46, 39, 163)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 76%, 64%)
CMYKcmyk(71.8%, 76.1%, 0%, 36.1%)
CIE-LABlab(25.79, 43.13, -65.08)
CIE-LCHlch(25.79, 78.08, 303.53°)
OKLaboklab(37.89% 0.0165 -0.1882)
OKLCHoklch(37.89% 0.189 275)
XYZxyz(8.4609, 4.6754, 35.0998)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E27A3 #9CA327
analogous
#275EA3 #2E27A3 #6C27A3
triadic
#2E27A3 #A32E27 #27A32E
tetradic
#2E27A3 #A3275E #9CA327 #27A36C
square
#2E27A3 #A3275E #9CA327 #27A36C
split-complementary
#2E27A3 #A36C27 #5EA327
monochromatic
#120F40 #201B72 #2E27A3 #4038CF #7069DB

Accessibility & contrast

On white

10.85
#2E27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E27A3
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E27A3#FFFFFF#000000##FFFFFF
##2E27A31.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A7
Deuteranopia (green-blind)
#0037A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e27a3;
/* rgb */ color: rgb(46, 39, 163);
/* oklch */ color: oklch(37.9% 0.189 275.0);
Tailwind
colors: {
  custom: {
    50: '#7963bf',
    500: '#2e27a3',
    950: '#000000',
  },
}
SCSS
$custom: #2e27a3;
$custom-light: #7963bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e27a3",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 243.387,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37887,
    "c": 0.18892,
    "h": 275
  },
  "luminance": 0.04676
}

Semantic roles & 50–950 ramp

primary
#2E27A3
secondary
#BCC164
accent
#E443DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2E27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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