#2E2A7A#2E2A7A

#2E2A7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.132 H 279.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2E2A7A
RGBrgb(46, 42, 122)
HSLhsl(243, 49%, 32%)
HSVhsv(243, 66%, 48%)
CMYKcmyk(62.3%, 65.6%, 0%, 52.2%)
CIE-LABlab(22.45, 27.27, -45.12)
CIE-LCHlch(22.45, 52.72, 301.15°)
OKLaboklab(34.28% 0.0208 -0.1298)
OKLCHoklch(34.28% 0.132 279.1)
XYZxyz(5.4664, 3.6415, 18.8234)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A7A #767A2A
analogous
#2A4E7A #2E2A7A #562A7A
triadic
#2E2A7A #7A2E2A #2A7A2E
tetradic
#2E2A7A #7A2A4E #767A2A #2A7A56
square
#2E2A7A #7A2A4E #767A2A #2A7A56
split-complementary
#2E2A7A #7A562A #4E7A2A
monochromatic
#0C0B1F #1D1A4C #2E2A7A #3F3AA8 #5E59C6

Accessibility & contrast

On white

12.15
#2E2A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2A7A
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A7A#FFFFFF#000000##FFFFFF
##2E2A7A1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2a7a;
/* rgb */ color: rgb(46, 42, 122);
/* oklch */ color: oklch(34.3% 0.132 279.1);
Tailwind
colors: {
  custom: {
    50: '#7064a1',
    500: '#2e2a7a',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a7a;
$custom-light: #7064a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a7a",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 243,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34275,
    "c": 0.1315,
    "h": 279.1
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#2E2A7A
secondary
#A7AB55
accent
#D84FD1
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2E2A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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