#2E2966#2E2966

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

Color values

HEX#2E2966
RGBrgb(46, 41, 102)
HSLhsl(245, 43%, 28%)
HSVhsv(245, 60%, 40%)
CMYKcmyk(54.9%, 59.8%, 0%, 60%)
CIE-LABlab(20.54, 20.89, -35.34)
CIE-LCHlch(20.54, 41.05, 300.60°)
OKLaboklab(32.35% 0.0227 -0.1011)
OKLCHoklch(32.35% 0.104 282.6)
XYZxyz(4.3172, 3.1258, 12.9436)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2966 #616629
analogous
#294266 #2E2966 #4C2966
triadic
#2E2966 #662E29 #29662E
tetradic
#2E2966 #662942 #616629 #29664C
square
#2E2966 #662942 #616629 #29664C
split-complementary
#2E2966 #664C29 #426629
monochromatic
#0A0916 #1A173A #2E2966 #423B92 #5951B9

Accessibility & contrast

On white

12.92
#2E2966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2966
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2966#FFFFFF#000000##FFFFFF
##2E29661.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013468
Deuteranopia (green-blind)
#002F65
Tritanopia (blue-blind)
#173743
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e2966;
/* rgb */ color: rgb(46, 41, 102);
/* oklch */ color: oklch(32.4% 0.104 282.6);
Tailwind
colors: {
  custom: {
    50: '#6c6392',
    500: '#2e2966',
    950: '#000000',
  },
}
SCSS
$custom: #2e2966;
$custom-light: #6c6392;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2966",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 102
  },
  "hsl": {
    "h": 244.918,
    "s": 42.657,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32352,
    "c": 0.10359,
    "h": 282.6
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#2E2966
secondary
#939852
accent
#D255C8
background
#F6F5F9
surface
#ECEAF1
border
#C7C6CB
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2E2966

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

Preview Lab → · Contrast checker → · Palette generator →

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