#2E254F#2E254F

#2E254F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.8% C 0.074 H 291.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2E254F
RGBrgb(46, 37, 79)
HSLhsl(253, 36%, 23%)
HSVhsv(253, 53%, 31%)
CMYKcmyk(41.8%, 53.2%, 0%, 69%)
CIE-LABlab(17.78, 15.86, -24.49)
CIE-LCHlch(17.78, 29.17, 302.92°)
OKLaboklab(29.76% 0.0267 -0.0692)
OKLCHoklch(29.76% 0.074 291.1)
XYZxyz(3.1992, 2.4684, 7.7035)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E254F #464F25
analogous
#25314F #2E254F #43254F
triadic
#2E254F #4F2E25 #254F2E
tetradic
#2E254F #4F2531 #464F25 #254F43
square
#2E254F #4F2531 #464F25 #254F43
split-complementary
#2E254F #4F4325 #314F25
monochromatic
#0C0A15 #161125 #2E254F #463979 #5F4CA2

Accessibility & contrast

On white

14.06
#2E254F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E254F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E254F
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E254F#FFFFFF#000000##FFFFFF
##2E254F1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152C51
Deuteranopia (green-blind)
#162B4E
Tritanopia (blue-blind)
#252D36
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e254f;
/* rgb */ color: rgb(46, 37, 79);
/* oklch */ color: oklch(29.8% 0.074 291.1);
Tailwind
colors: {
  custom: {
    50: '#695f80',
    500: '#2e254f',
    950: '#000000',
  },
}
SCSS
$custom: #2e254f;
$custom-light: #695f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2e254f",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 79
  },
  "hsl": {
    "h": 252.857,
    "s": 36.207,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29758,
    "c": 0.07418,
    "h": 291.1
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#2E254F
secondary
#77824E
accent
#CC5CB4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E254F

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

Preview Lab → · Contrast checker → · Palette generator →

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