#2E277C#2E277C

#2E277C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.138 H 279.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#2E277C
RGBrgb(46, 39, 124)
HSLhsl(245, 52%, 32%)
HSVhsv(245, 69%, 49%)
CMYKcmyk(62.9%, 68.5%, 0%, 51.4%)
CIE-LABlab(21.90, 29.92, -47.30)
CIE-LCHlch(21.90, 55.97, 302.32°)
OKLaboklab(33.93% 0.0234 -0.1362)
OKLCHoklch(33.93% 0.138 279.8)
XYZxyz(5.4892, 3.4867, 19.4486)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E277C #757C27
analogous
#274B7C #2E277C #59277C
triadic
#2E277C #7C2E27 #277C2E
tetradic
#2E277C #7C274B #757C27 #277C59
square
#2E277C #7C274B #757C27 #277C59
split-complementary
#2E277C #7C5927 #4B7C27
monochromatic
#0B0A1F #1D184D #2E277C #3F36AB #5E54C9

Accessibility & contrast

On white

12.37
#2E277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2E277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E277C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E277C#FFFFFF#000000##FFFFFF
##2E277C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e277c;
/* rgb */ color: rgb(46, 39, 124);
/* oklch */ color: oklch(33.9% 0.138 279.8);
Tailwind
colors: {
  custom: {
    50: '#7062a3',
    500: '#2e277c',
    950: '#000000',
  },
}
SCSS
$custom: #2e277c;
$custom-light: #7062a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e277c",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 244.941,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33928,
    "c": 0.13823,
    "h": 279.8
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#2E277C
secondary
#A6AE51
accent
#DC4CD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E277C

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

Preview Lab → · Contrast checker → · Palette generator →

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