#2E2676#2E2676

#2E2676 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.131 H 281.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2E2676
RGBrgb(46, 38, 118)
HSLhsl(246, 51%, 31%)
HSVhsv(246, 68%, 46%)
CMYKcmyk(61%, 67.8%, 0%, 53.7%)
CIE-LABlab(21.11, 28.48, -44.75)
CIE-LCHlch(21.11, 53.05, 302.48°)
OKLaboklab(33.19% 0.0251 -0.1288)
OKLCHoklch(33.19% 0.131 281)
XYZxyz(5.0888, 3.2747, 17.5000)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2676 #6E7626
analogous
#264676 #2E2676 #562676
triadic
#2E2676 #762E26 #26762E
tetradic
#2E2676 #762646 #6E7626 #267656
square
#2E2676 #762646 #6E7626 #267656
split-complementary
#2E2676 #765626 #467626
monochromatic
#0A0819 #1C1748 #2E2676 #4035A4 #5C50C7

Accessibility & contrast

On white

12.69
#2E2676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E2676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2676
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2676#FFFFFF#000000##FFFFFF
##2E26761.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#013A4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e2676;
/* rgb */ color: rgb(46, 38, 118);
/* oklch */ color: oklch(33.2% 0.131 281.0);
Tailwind
colors: {
  custom: {
    50: '#6f619e',
    500: '#2e2676',
    950: '#000000',
  },
}
SCSS
$custom: #2e2676;
$custom-light: #6f619e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2676",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 118
  },
  "hsl": {
    "h": 246,
    "s": 51.282,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33191,
    "c": 0.13119,
    "h": 281
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#2E2676
secondary
#9FA84F
accent
#DB4DCD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2676

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

Preview Lab → · Contrast checker → · Palette generator →

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