#2E2A7B#2E2A7B

#2E2A7B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.133 H 279.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2E2A7B
RGBrgb(46, 42, 123)
HSLhsl(243, 49%, 32%)
HSVhsv(243, 66%, 48%)
CMYKcmyk(62.6%, 65.9%, 0%, 51.8%)
CIE-LABlab(22.54, 27.63, -45.62)
CIE-LCHlch(22.54, 53.33, 301.20°)
OKLaboklab(34.37% 0.0207 -0.1313)
OKLCHoklch(34.37% 0.133 279)
XYZxyz(5.5287, 3.6664, 19.1514)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A7B #777B2A
analogous
#2A4F7B #2E2A7B #572A7B
triadic
#2E2A7B #7B2E2A #2A7B2E
tetradic
#2E2A7B #7B2A4F #777B2A #2A7B57
square
#2E2A7B #7B2A4F #777B2A #2A7B57
split-complementary
#2E2A7B #7B572A #4F7B2A
monochromatic
#0C0B20 #1D1A4D #2E2A7B #3F3AA9 #5E59C6

Accessibility & contrast

On white

12.11
#2E2A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E2A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A7B
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A7B#FFFFFF#000000##FFFFFF
##2E2A7B1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2a7b;
/* rgb */ color: rgb(46, 42, 123);
/* oklch */ color: oklch(34.4% 0.133 279.0);
Tailwind
colors: {
  custom: {
    50: '#7064a2',
    500: '#2e2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a7b;
$custom-light: #7064a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a7b",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 242.963,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34366,
    "c": 0.13292,
    "h": 279
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

primary
#2E2A7B
secondary
#A8AC55
accent
#D94FD2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2E2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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