#2E255C#2E255C

#2E255C is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.7% C 0.095 H 287.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2E255C
RGBrgb(46, 37, 92)
HSLhsl(250, 43%, 25%)
HSVhsv(250, 60%, 36%)
CMYKcmyk(50%, 59.8%, 0%, 63.9%)
CIE-LABlab(18.70, 20.19, -31.73)
CIE-LCHlch(18.70, 37.60, 302.47°)
OKLaboklab(30.74% 0.0276 -0.0905)
OKLCHoklch(30.74% 0.095 287)
XYZxyz(3.7195, 2.6765, 10.4438)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E255C #535C25
analogous
#25375C #2E255C #49255C
triadic
#2E255C #5C2E25 #255C2E
tetradic
#2E255C #5C2537 #535C25 #255C49
square
#2E255C #5C2537 #535C25 #255C49
split-complementary
#2E255C #5C4925 #375C25
monochromatic
#0B0916 #181330 #2E255C #443788 #5A48B3

Accessibility & contrast

On white

13.68
#2E255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E255C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E255C#FFFFFF#000000##FFFFFF
##2E255C1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062F5E
Deuteranopia (green-blind)
#052C5B
Tritanopia (blue-blind)
#1F313C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e255c;
/* rgb */ color: rgb(46, 37, 92);
/* oklch */ color: oklch(30.7% 0.095 287.0);
Tailwind
colors: {
  custom: {
    50: '#6b5f8b',
    500: '#2e255c',
    950: '#000000',
  },
}
SCSS
$custom: #2e255c;
$custom-light: #6b5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e255c",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 249.818,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30743,
    "c": 0.09459,
    "h": 287
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#2E255C
secondary
#858F4D
accent
#D255BE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E255C

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

Preview Lab → · Contrast checker → · Palette generator →

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