#2E2C98#2E2C98

#2E2C98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.170 H 275.3°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2E2C98
RGBrgb(46, 44, 152)
HSLhsl(241, 55%, 38%)
HSVhsv(241, 71%, 60%)
CMYKcmyk(69.7%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.71, 36.50, -58.51)
CIE-LCHlch(25.71, 68.96, 301.96°)
OKLaboklab(37.49% 0.0156 -0.169)
OKLCHoklch(37.49% 0.17 275.3)
XYZxyz(7.6930, 4.6485, 30.1915)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2C98 #96982C
analogous
#2C6098 #2E2C98 #642C98
triadic
#2E2C98 #982E2C #2C982E
tetradic
#2E2C98 #982C60 #96982C #2C9864
square
#2E2C98 #982C60 #96982C #2C9864
split-complementary
#2E2C98 #98642C #60982C
monochromatic
#111139 #201E69 #2E2C98 #3E3BC6 #6C6AD4

Accessibility & contrast

On white

10.88
#2E2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2E2C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2C98
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2C98#FFFFFF#000000##FFFFFF
##2E2C981.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e2c98;
/* rgb */ color: rgb(46, 44, 152);
/* oklch */ color: oklch(37.5% 0.170 275.3);
Tailwind
colors: {
  custom: {
    50: '#7666b7',
    500: '#2e2c98',
    950: '#000000',
  },
}
SCSS
$custom: #2e2c98;
$custom-light: #7666b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2c98",
  "rgb": {
    "r": 46,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 241.111,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37492,
    "c": 0.16975,
    "h": 275.3
  },
  "luminance": 0.04649
}

Semantic roles & 50–950 ramp

primary
#2E2C98
secondary
#B9BB65
accent
#DE49DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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