#2E277B#2E277B

#2E277B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.137 H 279.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2E277B
RGBrgb(46, 39, 123)
HSLhsl(245, 52%, 32%)
HSVhsv(245, 68%, 48%)
CMYKcmyk(62.6%, 68.3%, 0%, 51.8%)
CIE-LABlab(21.80, 29.58, -46.81)
CIE-LCHlch(21.80, 55.37, 302.29°)
OKLaboklab(33.83% 0.0235 -0.1348)
OKLCHoklch(33.83% 0.137 279.9)
XYZxyz(5.4263, 3.4615, 19.1173)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E277B #747B27
analogous
#274A7B #2E277B #58277B
triadic
#2E277B #7B2E27 #277B2E
tetradic
#2E277B #7B274A #747B27 #277B58
square
#2E277B #7B274A #747B27 #277B58
split-complementary
#2E277B #7B5827 #4A7B27
monochromatic
#0B0A1E #1D184D #2E277B #3F36A9 #5D54C9

Accessibility & contrast

On white

12.41
#2E277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E277B
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E277B#FFFFFF#000000##FFFFFF
##2E277B1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e277b;
/* rgb */ color: rgb(46, 39, 123);
/* oklch */ color: oklch(33.8% 0.137 279.9);
Tailwind
colors: {
  custom: {
    50: '#7062a2',
    500: '#2e277b',
    950: '#000000',
  },
}
SCSS
$custom: #2e277b;
$custom-light: #7062a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e277b",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 245,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33834,
    "c": 0.13684,
    "h": 279.9
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#2E277B
secondary
#A5AD51
accent
#DB4CCF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E277B

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

Preview Lab → · Contrast checker → · Palette generator →

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