#2E2762#2E2762

#2E2762 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.6% C 0.101 H 284.5°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#2E2762
RGBrgb(46, 39, 98)
HSLhsl(247, 43%, 27%)
HSVhsv(247, 60%, 38%)
CMYKcmyk(53.1%, 60.2%, 0%, 61.6%)
CIE-LABlab(19.69, 20.87, -34.08)
CIE-LCHlch(19.69, 39.97, 301.48°)
OKLaboklab(31.63% 0.0251 -0.0974)
OKLCHoklch(31.63% 0.101 284.5)
XYZxyz(4.0562, 2.9135, 11.9015)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2762 #5B6227
analogous
#273E62 #2E2762 #4C2762
triadic
#2E2762 #622E27 #27622E
tetradic
#2E2762 #62273E #5B6227 #27624C
square
#2E2762 #62273E #5B6227 #27624C
split-complementary
#2E2762 #624C27 #3E6227
monochromatic
#0A0916 #191636 #2E2762 #43388E #594CB8

Accessibility & contrast

On white

13.27
#2E2762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E2762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2762
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2762#FFFFFF#000000##FFFFFF
##2E27621.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023164
Deuteranopia (green-blind)
#002E61
Tritanopia (blue-blind)
#1B3440
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e2762;
/* rgb */ color: rgb(46, 39, 98);
/* oklch */ color: oklch(31.6% 0.101 284.5);
Tailwind
colors: {
  custom: {
    50: '#6b618f',
    500: '#2e2762',
    950: '#000000',
  },
}
SCSS
$custom: #2e2762;
$custom-light: #6b618f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2762",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 98
  },
  "hsl": {
    "h": 247.119,
    "s": 43.066,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31627,
    "c": 0.10058,
    "h": 284.5
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#2E2762
secondary
#8D9550
accent
#D355C4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2E2762

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

Preview Lab → · Contrast checker → · Palette generator →

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