#2E2B7A#2E2B7A

#2E2B7A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.130 H 278.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2E2B7A
RGBrgb(46, 43, 122)
HSLhsl(242, 48%, 32%)
HSVhsv(242, 65%, 48%)
CMYKcmyk(62.3%, 64.8%, 0%, 52.2%)
CIE-LABlab(22.70, 26.61, -44.71)
CIE-LCHlch(22.70, 52.03, 300.76°)
OKLaboklab(34.46% 0.0199 -0.1286)
OKLCHoklch(34.46% 0.13 278.8)
XYZxyz(5.5023, 3.7133, 18.8354)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B7A #777A2B
analogous
#2B507A #2E2B7A #552B7A
triadic
#2E2B7A #7A2E2B #2B7A2E
tetradic
#2E2B7A #7A2B50 #777A2B #2B7A55
square
#2E2B7A #7A2B50 #777A2B #2B7A55
split-complementary
#2E2B7A #7A552B #507A2B
monochromatic
#0C0B1F #1D1B4D #2E2B7A #3F3BA7 #5E5AC5

Accessibility & contrast

On white

12.05
#2E2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E2B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B7A
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B7A#FFFFFF#000000##FFFFFF
##2E2B7A1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2b7a;
/* rgb */ color: rgb(46, 43, 122);
/* oklch */ color: oklch(34.5% 0.130 278.8);
Tailwind
colors: {
  custom: {
    50: '#7064a1',
    500: '#2e2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b7a;
$custom-light: #7064a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b7a",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 242.278,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34459,
    "c": 0.13015,
    "h": 278.8
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#2E2B7A
secondary
#A8AB56
accent
#D750D2
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2E2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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