#2E255F#2E255F

#2E255F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 31.0% C 0.099 H 286.2°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2E255F
RGBrgb(46, 37, 95)
HSLhsl(249, 44%, 26%)
HSVhsv(249, 61%, 37%)
CMYKcmyk(51.6%, 61.1%, 0%, 62.7%)
CIE-LABlab(18.93, 21.21, -33.34)
CIE-LCHlch(18.93, 39.52, 302.46°)
OKLaboklab(30.99% 0.0276 -0.0952)
OKLCHoklch(30.99% 0.099 286.2)
XYZxyz(3.8532, 2.7300, 11.1482)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E255F #565F25
analogous
#25395F #2E255F #4B255F
triadic
#2E255F #5F2E25 #255F2E
tetradic
#2E255F #5F2539 #565F25 #255F4B
square
#2E255F #5F2539 #565F25 #255F4B
split-complementary
#2E255F #5F4B25 #395F25
monochromatic
#0B0916 #191433 #2E255F #43368B #5947B7

Accessibility & contrast

On white

13.58
#2E255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E255F
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E255F#FFFFFF#000000##FFFFFF
##2E255F1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013061
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#1D323E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e255f;
/* rgb */ color: rgb(46, 37, 95);
/* oklch */ color: oklch(31.0% 0.099 286.2);
Tailwind
colors: {
  custom: {
    50: '#6b608d',
    500: '#2e255f',
    950: '#000000',
  },
}
SCSS
$custom: #2e255f;
$custom-light: #6b608d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e255f",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 249.31,
    "s": 43.939,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30986,
    "c": 0.09916,
    "h": 286.2
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#2E255F
secondary
#88924D
accent
#D454C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E255F

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

Preview Lab → · Contrast checker → · Palette generator →

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