#2E276F#2E276F

#2E276F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.7% C 0.120 H 281.9°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2E276F
RGBrgb(46, 39, 111)
HSLhsl(246, 48%, 29%)
HSVhsv(246, 65%, 44%)
CMYKcmyk(58.6%, 64.9%, 0%, 56.5%)
CIE-LABlab(20.75, 25.39, -40.85)
CIE-LCHlch(20.75, 48.10, 301.87°)
OKLaboklab(32.74% 0.0247 -0.1173)
OKLCHoklch(32.74% 0.12 281.9)
XYZxyz(4.7206, 3.1793, 15.4008)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E276F #686F27
analogous
#27446F #2E276F #52276F
triadic
#2E276F #6F2E27 #276F2E
tetradic
#2E276F #6F2744 #686F27 #276F52
square
#2E276F #6F2744 #686F27 #276F52
split-complementary
#2E276F #6F5227 #446F27
monochromatic
#090817 #1B1742 #2E276F #41379C #5A4FC1

Accessibility & contrast

On white

12.84
#2E276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E276F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E276F#FFFFFF#000000##FFFFFF
##2E276F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#0E3847
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e276f;
/* rgb */ color: rgb(46, 39, 111);
/* oklch */ color: oklch(32.7% 0.120 281.9);
Tailwind
colors: {
  custom: {
    50: '#6e6199',
    500: '#2e276f',
    950: '#000000',
  },
}
SCSS
$custom: #2e276f;
$custom-light: #6e6199;
$custom-dark: #000000;
JSON
{
  "hex": "#2e276f",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 245.833,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32735,
    "c": 0.11986,
    "h": 281.9
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#2E276F
secondary
#9AA250
accent
#D850CA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E276F

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

Preview Lab → · Contrast checker → · Palette generator →

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