#2E297E#2E297E

#2E297E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.138 H 278.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2E297E
RGBrgb(46, 41, 126)
HSLhsl(244, 51%, 33%)
HSVhsv(244, 67%, 49%)
CMYKcmyk(63.5%, 67.5%, 0%, 50.6%)
CIE-LABlab(22.56, 29.33, -47.48)
CIE-LCHlch(22.56, 55.81, 301.71°)
OKLaboklab(34.47% 0.0214 -0.1368)
OKLCHoklch(34.47% 0.138 278.9)
XYZxyz(5.6843, 3.6726, 20.1440)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E297E #797E29
analogous
#294F7E #2E297E #58297E
triadic
#2E297E #7E2E29 #297E2E
tetradic
#2E297E #7E294F #797E29 #297E58
square
#2E297E #7E294F #797E29 #297E58
split-complementary
#2E297E #7E5829 #4F7E29
monochromatic
#0C0B22 #1D1A50 #2E297E #3F38AC #5F59C9

Accessibility & contrast

On white

12.11
#2E297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E297E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E297E#FFFFFF#000000##FFFFFF
##2E297E1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e297e;
/* rgb */ color: rgb(46, 41, 126);
/* oklch */ color: oklch(34.5% 0.138 278.9);
Tailwind
colors: {
  custom: {
    50: '#7163a4',
    500: '#2e297e',
    950: '#000000',
  },
}
SCSS
$custom: #2e297e;
$custom-light: #7163a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e297e",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 243.529,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34465,
    "c": 0.13843,
    "h": 278.9
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#2E297E
secondary
#A9AE55
accent
#DA4DD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E297E

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

Preview Lab → · Contrast checker → · Palette generator →

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