#2E2D7B#2E2D7B

#2E2D7B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.129 H 277.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2E2D7B
RGBrgb(46, 45, 123)
HSLhsl(241, 46%, 33%)
HSVhsv(241, 63%, 48%)
CMYKcmyk(62.6%, 63.4%, 0%, 51.8%)
CIE-LABlab(23.30, 25.64, -44.38)
CIE-LCHlch(23.30, 51.25, 300.01°)
OKLaboklab(34.92% 0.0178 -0.1276)
OKLCHoklch(34.92% 0.129 277.9)
XYZxyz(5.6391, 3.8873, 19.1882)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2D7B #7A7B2D
analogous
#2D537B #2E2D7B #552D7B
triadic
#2E2D7B #7B2E2D #2D7B2E
tetradic
#2E2D7B #7B2D53 #7A7B2D #2D7B55
square
#2E2D7B #7B2D53 #7A7B2D #2D7B55
split-complementary
#2E2D7B #7B552D #537B2D
monochromatic
#0C0C21 #1D1D4E #2E2D7B #3F3DA8 #605EC4

Accessibility & contrast

On white

11.81
#2E2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2E2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2D7B
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2D7B#FFFFFF#000000##FFFFFF
##2E2D7B1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2d7b;
/* rgb */ color: rgb(46, 45, 123);
/* oklch */ color: oklch(34.9% 0.129 277.9);
Tailwind
colors: {
  custom: {
    50: '#7066a2',
    500: '#2e2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #2e2d7b;
$custom-light: #7066a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2d7b",
  "rgb": {
    "r": 46,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 240.769,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34922,
    "c": 0.12888,
    "h": 277.9
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

primary
#2E2D7B
secondary
#AAAB59
accent
#D652D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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