#2E298B#2E298B

#2E298B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.156 H 277.2°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2E298B
RGBrgb(46, 41, 139)
HSLhsl(243, 54%, 35%)
HSVhsv(243, 71%, 55%)
CMYKcmyk(66.9%, 70.5%, 0%, 45.5%)
CIE-LABlab(23.77, 33.86, -53.66)
CIE-LCHlch(23.77, 63.45, 302.25°)
OKLaboklab(35.72% 0.0197 -0.1549)
OKLCHoklch(35.72% 0.156 277.2)
XYZxyz(6.5783, 4.0302, 24.8523)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E298B #868B29
analogous
#29558B #2E298B #5F298B
triadic
#2E298B #8B2E29 #298B2E
tetradic
#2E298B #8B2955 #868B29 #298B5F
square
#2E298B #8B2955 #868B29 #298B5F
split-complementary
#2E298B #8B5F29 #558B29
monochromatic
#0F0D2C #1E1B5C #2E298B #3E37BA #645FD0

Accessibility & contrast

On white

11.63
#2E298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E298B
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E298B#FFFFFF#000000##FFFFFF
##2E298B1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e298b;
/* rgb */ color: rgb(46, 41, 139);
/* oklch */ color: oklch(35.7% 0.156 277.2);
Tailwind
colors: {
  custom: {
    50: '#7364ae',
    500: '#2e298b',
    950: '#000000',
  },
}
SCSS
$custom: #2e298b;
$custom-light: #7364ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e298b",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 243.061,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35715,
    "c": 0.1561,
    "h": 277.2
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

primary
#2E298B
secondary
#B1B55B
accent
#DE4AD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2E298B

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

Preview Lab → · Contrast checker → · Palette generator →

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