#2E27B7#2E27B7

#2E27B7 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.213 H 273.2°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2E27B7
RGBrgb(46, 39, 183)
HSLhsl(243, 65%, 44%)
HSVhsv(243, 79%, 72%)
CMYKcmyk(74.9%, 78.7%, 0%, 28.2%)
CIE-LABlab(27.98, 49.56, -73.47)
CIE-LCHlch(27.98, 88.62, 304.00°)
OKLaboklab(40.07% 0.012 -0.2126)
OKLCHoklch(40.07% 0.213 273.2)
XYZxyz(10.3966, 5.4497, 45.2945)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E27B7 #B0B727
analogous
#2768B7 #2E27B7 #7627B7
triadic
#2E27B7 #B72E27 #27B72E
tetradic
#2E27B7 #B72768 #B0B727 #27B776
square
#2E27B7 #B72768 #B0B727 #27B776
split-complementary
#2E27B7 #B77627 #68B727
monochromatic
#151152 #211C85 #2E27B7 #4B44D7 #7C76E2

Accessibility & contrast

On white

10.05
#2E27B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2E27B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E27B7
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E27B7#FFFFFF#000000##FFFFFF
##2E27B71.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BB
Deuteranopia (green-blind)
#003BB5
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e27b7;
/* rgb */ color: rgb(46, 39, 183);
/* oklch */ color: oklch(40.1% 0.213 273.2);
Tailwind
colors: {
  custom: {
    50: '#7e64ce',
    500: '#2e27b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e27b7;
$custom-light: #7e64ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e27b7",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 183
  },
  "hsl": {
    "h": 242.917,
    "s": 64.865,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40072,
    "c": 0.21293,
    "h": 273.2
  },
  "luminance": 0.05451
}

Semantic roles & 50–950 ramp

primary
#2E27B7
secondary
#C5C970
accent
#E840E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2E27B7

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

Preview Lab → · Contrast checker → · Palette generator →

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