#2E2263#2E2263

#2E2263 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.110 H 286.5°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2E2263
RGBrgb(46, 34, 99)
HSLhsl(251, 49%, 26%)
HSVhsv(251, 66%, 39%)
CMYKcmyk(53.5%, 65.7%, 0%, 61.2%)
CIE-LABlab(18.48, 24.58, -36.71)
CIE-LCHlch(18.48, 44.18, 303.81°)
OKLaboklab(30.76% 0.0312 -0.1051)
OKLCHoklch(30.76% 0.11 286.5)
XYZxyz(3.9502, 2.6256, 12.1006)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2263 #576322
analogous
#223663 #2E2263 #4E2263
triadic
#2E2263 #632E22 #22632E
tetradic
#2E2263 #632236 #576322 #22634E
square
#2E2263 #632236 #576322 #22634E
split-complementary
#2E2263 #634E22 #366322
monochromatic
#0B0817 #191235 #2E2263 #433291 #5841BE

Accessibility & contrast

On white

13.77
#2E2263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E2263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2263
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2263#FFFFFF#000000##FFFFFF
##2E22631.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F65
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#1B313F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e2263;
/* rgb */ color: rgb(46, 34, 99);
/* oklch */ color: oklch(30.8% 0.110 286.5);
Tailwind
colors: {
  custom: {
    50: '#6c5d90',
    500: '#2e2263',
    950: '#000000',
  },
}
SCSS
$custom: #2e2263;
$custom-light: #6c5d90;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2263",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 99
  },
  "hsl": {
    "h": 251.077,
    "s": 48.872,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30757,
    "c": 0.10968,
    "h": 286.5
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#2E2263
secondary
#89974A
accent
#D84FBF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E2263

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

Preview Lab → · Contrast checker → · Palette generator →

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