#2E315E#2E315E

#2E315E is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.078 H 278.4°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2E315E
RGBrgb(46, 49, 94)
HSLhsl(236, 34%, 27%)
HSVhsv(236, 51%, 37%)
CMYKcmyk(51.1%, 47.9%, 0%, 63.1%)
CIE-LABlab(22.25, 12.52, -27.36)
CIE-LCHlch(22.25, 30.09, 294.60°)
OKLaboklab(33.46% 0.0114 -0.0776)
OKLCHoklch(33.46% 0.078 278.4)
XYZxyz(4.2448, 3.5854, 11.0559)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E315E #5E5B2E
analogous
#2E495E #2E315E #432E5E
triadic
#2E315E #5E2E31 #315E2E
tetradic
#2E315E #5E2E49 #5E5B2E #2E5E43
square
#2E315E #5E2E49 #5E5B2E #2E5E43
split-complementary
#2E315E #5E432E #495E2E
monochromatic
#0A0B15 #1A1C35 #2E315E #424687 #595EAE

Accessibility & contrast

On white

12.23
#2E315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E315E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E315E#FFFFFF#000000##FFFFFF
##2E315E1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3760
Deuteranopia (green-blind)
#1B335D
Tritanopia (blue-blind)
#1C3A43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e315e;
/* rgb */ color: rgb(46, 49, 94);
/* oklch */ color: oklch(33.5% 0.078 278.4);
Tailwind
colors: {
  custom: {
    50: '#6a688c',
    500: '#2e315e',
    950: '#000000',
  },
}
SCSS
$custom: #2e315e;
$custom-light: #6a688c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e315e",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 236.25,
    "s": 34.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33455,
    "c": 0.07841,
    "h": 278.4
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#2E315E
secondary
#908C58
accent
#C45DCA
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #2E315E

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

Preview Lab → · Contrast checker → · Palette generator →

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