#2E278E#2E278E

#2E278E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.162 H 277.3°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2E278E
RGBrgb(46, 39, 142)
HSLhsl(244, 57%, 35%)
HSVhsv(244, 73%, 56%)
CMYKcmyk(67.6%, 72.5%, 0%, 44.3%)
CIE-LABlab(23.62, 36.11, -55.77)
CIE-LCHlch(23.62, 66.44, 302.92°)
OKLaboklab(35.7% 0.0206 -0.161)
OKLCHoklch(35.7% 0.162 277.3)
XYZxyz(6.7331, 3.9843, 26.0002)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E278E #878E27
analogous
#27538E #2E278E #62278E
triadic
#2E278E #8E2E27 #278E2E
tetradic
#2E278E #8E2753 #878E27 #278E62
square
#2E278E #8E2753 #878E27 #278E62
split-complementary
#2E278E #8E6227 #538E27
monochromatic
#0F0D2E #1E1A5E #2E278E #3E34BE #655DD2

Accessibility & contrast

On white

11.69
#2E278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2E278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E278E
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E278E#FFFFFF#000000##FFFFFF
##2E278E1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e278e;
/* rgb */ color: rgb(46, 39, 142);
/* oklch */ color: oklch(35.7% 0.162 277.3);
Tailwind
colors: {
  custom: {
    50: '#7462b0',
    500: '#2e278e',
    950: '#000000',
  },
}
SCSS
$custom: #2e278e;
$custom-light: #7462b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e278e",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 244.078,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35695,
    "c": 0.16236,
    "h": 277.3
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#2E278E
secondary
#B1B859
accent
#E048D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E278E

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

Preview Lab → · Contrast checker → · Palette generator →

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