#2E276B#2E276B

#2E276B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.4% C 0.114 H 282.6°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2E276B
RGBrgb(46, 39, 107)
HSLhsl(246, 47%, 29%)
HSVhsv(246, 64%, 42%)
CMYKcmyk(57%, 63.6%, 0%, 58%)
CIE-LABlab(20.41, 24.00, -38.80)
CIE-LCHlch(20.41, 45.62, 301.74°)
OKLaboklab(32.38% 0.0249 -0.1113)
OKLCHoklch(32.38% 0.114 282.6)
XYZxyz(4.5053, 3.0932, 14.2667)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E276B #646B27
analogous
#27426B #2E276B #50276B
triadic
#2E276B #6B2E27 #276B2E
tetradic
#2E276B #6B2742 #646B27 #276B50
square
#2E276B #6B2742 #646B27 #276B50
split-complementary
#2E276B #6B5027 #426B27
monochromatic
#0A0816 #1B173E #2E276B #413798 #5A4EBE

Accessibility & contrast

On white

12.97
#2E276B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E276B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E276B
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E276B#FFFFFF#000000##FFFFFF
##2E276B1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#133745
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e276b;
/* rgb */ color: rgb(46, 39, 107);
/* oklch */ color: oklch(32.4% 0.114 282.6);
Tailwind
colors: {
  custom: {
    50: '#6d6196',
    500: '#2e276b',
    950: '#000000',
  },
}
SCSS
$custom: #2e276b;
$custom-light: #6d6196;
$custom-dark: #000000;
JSON
{
  "hex": "#2e276b",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 107
  },
  "hsl": {
    "h": 246.176,
    "s": 46.575,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32384,
    "c": 0.11403,
    "h": 282.6
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#2E276B
secondary
#969E50
accent
#D652C9
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2E276B

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

Preview Lab → · Contrast checker → · Palette generator →

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