#2E278C#2E278C

#2E278C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.160 H 277.5°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2E278C
RGBrgb(46, 39, 140)
HSLhsl(244, 56%, 35%)
HSVhsv(244, 72%, 55%)
CMYKcmyk(67.1%, 72.1%, 0%, 45.1%)
CIE-LABlab(23.42, 35.43, -54.85)
CIE-LCHlch(23.42, 65.30, 302.86°)
OKLaboklab(35.49% 0.021 -0.1584)
OKLCHoklch(35.49% 0.16 277.5)
XYZxyz(6.5843, 3.9248, 25.2164)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E278C #858C27
analogous
#27538C #2E278C #60278C
triadic
#2E278C #8C2E27 #278C2E
tetradic
#2E278C #8C2753 #858C27 #278C60
square
#2E278C #8C2753 #858C27 #278C60
split-complementary
#2E278C #8C6027 #538C27
monochromatic
#0F0C2C #1E1A5C #2E278C #3E34BC #645CD2

Accessibility & contrast

On white

11.76
#2E278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E278C
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E278C#FFFFFF#000000##FFFFFF
##2E278C1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e278c;
/* rgb */ color: rgb(46, 39, 140);
/* oklch */ color: oklch(35.5% 0.160 277.5);
Tailwind
colors: {
  custom: {
    50: '#7462af',
    500: '#2e278c',
    950: '#000000',
  },
}
SCSS
$custom: #2e278c;
$custom-light: #7462af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e278c",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 244.158,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35493,
    "c": 0.15974,
    "h": 277.5
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#2E278C
secondary
#B0B758
accent
#E048D5
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E278C

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

Preview Lab → · Contrast checker → · Palette generator →

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