#2E2B9C#2E2B9C

#2E2B9C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.176 H 275.1°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2E2B9C
RGBrgb(46, 43, 156)
HSLhsl(242, 57%, 39%)
HSVhsv(242, 72%, 61%)
CMYKcmyk(70.5%, 72.4%, 0%, 38.8%)
CIE-LABlab(25.89, 38.48, -60.66)
CIE-LCHlch(25.89, 71.84, 302.39°)
OKLaboklab(37.74% 0.0156 -0.1753)
OKLCHoklch(37.74% 0.176 275.1)
XYZxyz(7.9894, 4.7081, 31.9338)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B9C #999C2B
analogous
#2B619C #2E2B9C #672B9C
triadic
#2E2B9C #9C2E2B #2B9C2E
tetradic
#2E2B9C #9C2B61 #999C2B #2B9C67
square
#2E2B9C #9C2B61 #999C2B #2B9C67
split-complementary
#2E2B9C #9C672B #619C2B
monochromatic
#12113C #201E6C #2E2B9C #3F3BC9 #6E6BD6

Accessibility & contrast

On white

10.81
#2E2B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2E2B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B9C
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B9C#FFFFFF#000000##FFFFFF
##2E2B9C1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e2b9c;
/* rgb */ color: rgb(46, 43, 156);
/* oklch */ color: oklch(37.7% 0.176 275.1);
Tailwind
colors: {
  custom: {
    50: '#7765ba',
    500: '#2e2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b9c;
$custom-light: #7765ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b9c",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 241.593,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3774,
    "c": 0.17603,
    "h": 275.1
  },
  "luminance": 0.04709
}

Semantic roles & 50–950 ramp

primary
#2E2B9C
secondary
#BBBD66
accent
#E048DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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