#2E236E#2E236E

#2E236E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.124 H 283.5°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2E236E
RGBrgb(46, 35, 110)
HSLhsl(249, 52%, 28%)
HSVhsv(249, 68%, 43%)
CMYKcmyk(58.2%, 68.2%, 0%, 56.9%)
CIE-LABlab(19.67, 27.67, -41.95)
CIE-LCHlch(19.67, 50.25, 303.41°)
OKLaboklab(31.92% 0.029 -0.1205)
OKLCHoklch(31.92% 0.124 283.5)
XYZxyz(4.5414, 2.9084, 15.0709)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E236E #636E23
analogous
#233D6E #2E236E #53236E
triadic
#2E236E #6E2E23 #236E2E
tetradic
#2E236E #6E233D #636E23 #236E53
square
#2E236E #6E233D #636E23 #236E53
split-complementary
#2E236E #6E5323 #3D6E23
monochromatic
#0A0717 #1B1440 #2E236E #41329C #5947C4

Accessibility & contrast

On white

13.28
#2E236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E236E
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E236E#FFFFFF#000000##FFFFFF
##2E236E1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#103645
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e236e;
/* rgb */ color: rgb(46, 35, 110);
/* oklch */ color: oklch(31.9% 0.124 283.5);
Tailwind
colors: {
  custom: {
    50: '#6e5e98',
    500: '#2e236e',
    950: '#000000',
  },
}
SCSS
$custom: #2e236e;
$custom-light: #6e5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2e236e",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 248.8,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31925,
    "c": 0.12398,
    "h": 283.5
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#2E236E
secondary
#95A14C
accent
#DB4DC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2E236E

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

Preview Lab → · Contrast checker → · Palette generator →

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