#2E2C7C#2E2C7C

#2E2C7C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.132 H 278.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2E2C7C
RGBrgb(46, 44, 124)
HSLhsl(242, 48%, 33%)
HSVhsv(242, 65%, 49%)
CMYKcmyk(62.9%, 64.5%, 0%, 51.4%)
CIE-LABlab(23.13, 26.66, -45.29)
CIE-LCHlch(23.13, 52.55, 300.48°)
OKLaboklab(34.82% 0.0187 -0.1303)
OKLCHoklch(34.82% 0.132 278.2)
XYZxyz(5.6643, 3.8370, 19.5070)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2C7C #7A7C2C
analogous
#2C527C #2E2C7C #562C7C
triadic
#2E2C7C #7C2E2C #2C7C2E
tetradic
#2E2C7C #7C2C52 #7A7C2C #2C7C56
square
#2E2C7C #7C2C52 #7A7C2C #2C7C56
split-complementary
#2E2C7C #7C562C #527C2C
monochromatic
#0C0C22 #1D1C4F #2E2C7C #3F3CA9 #605DC5

Accessibility & contrast

On white

11.88
#2E2C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E2C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2C7C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2C7C#FFFFFF#000000##FFFFFF
##2E2C7C1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2c7c;
/* rgb */ color: rgb(46, 44, 124);
/* oklch */ color: oklch(34.8% 0.132 278.2);
Tailwind
colors: {
  custom: {
    50: '#7065a3',
    500: '#2e2c7c',
    950: '#000000',
  },
}
SCSS
$custom: #2e2c7c;
$custom-light: #7065a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2c7c",
  "rgb": {
    "r": 46,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 241.5,
    "s": 47.619,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34824,
    "c": 0.13166,
    "h": 278.2
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#2E2C7C
secondary
#AAAC58
accent
#D751D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2E2C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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