#2E27A6#2E27A6

#2E27A6 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.193 H 274.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#2E27A6
RGBrgb(46, 39, 166)
HSLhsl(243, 62%, 40%)
HSVhsv(243, 77%, 65%)
CMYKcmyk(72.3%, 76.5%, 0%, 34.9%)
CIE-LABlab(26.11, 44.11, -66.37)
CIE-LCHlch(26.11, 79.69, 303.61°)
OKLaboklab(38.21% 0.0158 -0.1919)
OKLCHoklch(38.21% 0.193 274.7)
XYZxyz(8.7329, 4.7842, 36.5322)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E27A6 #9FA627
analogous
#2760A6 #2E27A6 #6D27A6
triadic
#2E27A6 #A62E27 #27A62E
tetradic
#2E27A6 #A62760 #9FA627 #27A66D
square
#2E27A6 #A62760 #9FA627 #27A66D
split-complementary
#2E27A6 #A66D27 #60A627
monochromatic
#131043 #201B74 #2E27A6 #423AD1 #716BDC

Accessibility & contrast

On white

10.73
#2E27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2E27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E27A6
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E27A6#FFFFFF#000000##FFFFFF
##2E27A61.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e27a6;
/* rgb */ color: rgb(46, 39, 166);
/* oklch */ color: oklch(38.2% 0.193 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a63c2',
    500: '#2e27a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e27a6;
$custom-light: #7a63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e27a6",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 243.307,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3821,
    "c": 0.19259,
    "h": 274.7
  },
  "luminance": 0.04785
}

Semantic roles & 50–950 ramp

primary
#2E27A6
secondary
#BEC366
accent
#E543DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2E27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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