#2E276E#2E276E

#2E276E is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.6% C 0.118 H 282.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2E276E
RGBrgb(46, 39, 110)
HSLhsl(246, 48%, 29%)
HSVhsv(246, 65%, 43%)
CMYKcmyk(58.2%, 64.5%, 0%, 56.9%)
CIE-LABlab(20.66, 25.04, -40.34)
CIE-LCHlch(20.66, 47.48, 301.83°)
OKLaboklab(32.65% 0.0248 -0.1158)
OKLCHoklch(32.65% 0.118 282.1)
XYZxyz(4.6658, 3.1574, 15.1124)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E276E #676E27
analogous
#27446E #2E276E #52276E
triadic
#2E276E #6E2E27 #276E2E
tetradic
#2E276E #6E2744 #676E27 #276E52
square
#2E276E #6E2744 #676E27 #276E52
split-complementary
#2E276E #6E5227 #446E27
monochromatic
#090817 #1B1741 #2E276E #41379B #5A4FC1

Accessibility & contrast

On white

12.87
#2E276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E276E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E276E
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E276E#FFFFFF#000000##FFFFFF
##2E276E1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#0F3846
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e276e;
/* rgb */ color: rgb(46, 39, 110);
/* oklch */ color: oklch(32.6% 0.118 282.1);
Tailwind
colors: {
  custom: {
    50: '#6e6198',
    500: '#2e276e',
    950: '#000000',
  },
}
SCSS
$custom: #2e276e;
$custom-light: #6e6198;
$custom-dark: #000000;
JSON
{
  "hex": "#2e276e",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 245.915,
    "s": 47.651,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32647,
    "c": 0.11841,
    "h": 282.1
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#2E276E
secondary
#99A150
accent
#D751CA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E276E

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

Preview Lab → · Contrast checker → · Palette generator →

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