#2E277D#2E277D

#2E277D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.140 H 279.6°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2E277D
RGBrgb(46, 39, 125)
HSLhsl(245, 52%, 32%)
HSVhsv(245, 69%, 49%)
CMYKcmyk(63.2%, 68.8%, 0%, 51%)
CIE-LABlab(21.99, 30.27, -47.78)
CIE-LCHlch(21.99, 56.56, 302.35°)
OKLaboklab(34.02% 0.0233 -0.1376)
OKLCHoklch(34.02% 0.14 279.6)
XYZxyz(5.5527, 3.5121, 19.7834)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E277D #767D27
analogous
#274B7D #2E277D #59277D
triadic
#2E277D #7D2E27 #277D2E
tetradic
#2E277D #7D274B #767D27 #277D59
square
#2E277D #7D274B #767D27 #277D59
split-complementary
#2E277D #7D5927 #4B7D27
monochromatic
#0C0A20 #1D184E #2E277D #3F36AC #5E55CA

Accessibility & contrast

On white

12.33
#2E277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E277D
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E277D#FFFFFF#000000##FFFFFF
##2E277D1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e277d;
/* rgb */ color: rgb(46, 39, 125);
/* oklch */ color: oklch(34.0% 0.140 279.6);
Tailwind
colors: {
  custom: {
    50: '#7162a3',
    500: '#2e277d',
    950: '#000000',
  },
}
SCSS
$custom: #2e277d;
$custom-light: #7162a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e277d",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 244.884,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34023,
    "c": 0.13961,
    "h": 279.6
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E277D

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

Preview Lab → · Contrast checker → · Palette generator →

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