#2E255E#2E255E

#2E255E is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.9% C 0.098 H 286.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2E255E
RGBrgb(46, 37, 94)
HSLhsl(249, 44%, 26%)
HSVhsv(249, 61%, 37%)
CMYKcmyk(51.1%, 60.6%, 0%, 63.1%)
CIE-LABlab(18.85, 20.87, -32.81)
CIE-LCHlch(18.85, 38.88, 302.46°)
OKLaboklab(30.9% 0.0276 -0.0936)
OKLCHoklch(30.9% 0.098 286.4)
XYZxyz(3.8081, 2.7120, 10.9103)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E255E #555E25
analogous
#25385E #2E255E #4A255E
triadic
#2E255E #5E2E25 #255E2E
tetradic
#2E255E #5E2538 #555E25 #255E4A
square
#2E255E #5E2538 #555E25 #255E4A
split-complementary
#2E255E #5E4A25 #385E25
monochromatic
#0B0916 #191432 #2E255E #43368A #5948B6

Accessibility & contrast

On white

13.62
#2E255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E255E
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E255E#FFFFFF#000000##FFFFFF
##2E255E1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F60
Deuteranopia (green-blind)
#012C5D
Tritanopia (blue-blind)
#1E323D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e255e;
/* rgb */ color: rgb(46, 37, 94);
/* oklch */ color: oklch(30.9% 0.098 286.4);
Tailwind
colors: {
  custom: {
    50: '#6b5f8c',
    500: '#2e255e',
    950: '#000000',
  },
}
SCSS
$custom: #2e255e;
$custom-light: #6b5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e255e",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 249.474,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30905,
    "c": 0.09764,
    "h": 286.4
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#2E255E
secondary
#87914D
accent
#D355BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E255E

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

Preview Lab → · Contrast checker → · Palette generator →

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