#2E27B2#2E27B2

#2E27B2 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.5% C 0.207 H 273.6°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2E27B2
RGBrgb(46, 39, 178)
HSLhsl(243, 64%, 43%)
HSVhsv(243, 78%, 70%)
CMYKcmyk(74.2%, 78.1%, 0%, 30.2%)
CIE-LABlab(27.42, 47.97, -71.42)
CIE-LCHlch(27.42, 86.03, 303.89°)
OKLaboklab(39.52% 0.0132 -0.2066)
OKLCHoklch(39.52% 0.207 273.6)
XYZxyz(9.8854, 5.2452, 42.6023)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E27B2 #ABB227
analogous
#2765B2 #2E27B2 #7427B2
triadic
#2E27B2 #B22E27 #27B22E
tetradic
#2E27B2 #B22765 #ABB227 #27B274
square
#2E27B2 #B22765 #ABB227 #27B274
split-complementary
#2E27B2 #B27427 #65B227
monochromatic
#14114E #211C80 #2E27B2 #4841D5 #7973E0

Accessibility & contrast

On white

10.25
#2E27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2E27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E27B2
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E27B2#FFFFFF#000000##FFFFFF
##2E27B21.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003AB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e27b2;
/* rgb */ color: rgb(46, 39, 178);
/* oklch */ color: oklch(39.5% 0.207 273.6);
Tailwind
colors: {
  custom: {
    50: '#7d64ca',
    500: '#2e27b2',
    950: '#000000',
  },
}
SCSS
$custom: #2e27b2;
$custom-light: #7d64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2e27b2",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 243.022,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39518,
    "c": 0.20703,
    "h": 273.6
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#2E27B2
secondary
#C3C86D
accent
#E741DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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