#2E297A#2E297A

#2E297A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.133 H 279.4°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2E297A
RGBrgb(46, 41, 122)
HSLhsl(244, 50%, 32%)
HSVhsv(244, 66%, 48%)
CMYKcmyk(62.3%, 66.4%, 0%, 52.2%)
CIE-LABlab(22.20, 27.93, -45.53)
CIE-LCHlch(22.20, 53.41, 301.53°)
OKLaboklab(34.09% 0.0218 -0.131)
OKLCHoklch(34.09% 0.133 279.4)
XYZxyz(5.4314, 3.5715, 18.8117)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E297A #757A29
analogous
#294D7A #2E297A #57297A
triadic
#2E297A #7A2E29 #297A2E
tetradic
#2E297A #7A294D #757A29 #297A57
square
#2E297A #7A294D #757A29 #297A57
split-complementary
#2E297A #7A5729 #4D7A29
monochromatic
#0B0A1E #1D1A4C #2E297A #3F38A8 #5E57C7

Accessibility & contrast

On white

12.25
#2E297A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E297A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E297A
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E297A#FFFFFF#000000##FFFFFF
##2E297A1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e297a;
/* rgb */ color: rgb(46, 41, 122);
/* oklch */ color: oklch(34.1% 0.133 279.4);
Tailwind
colors: {
  custom: {
    50: '#7063a1',
    500: '#2e297a',
    950: '#000000',
  },
}
SCSS
$custom: #2e297a;
$custom-light: #7063a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e297a",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 122
  },
  "hsl": {
    "h": 243.704,
    "s": 49.693,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34094,
    "c": 0.13283,
    "h": 279.4
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#2E297A
secondary
#A6AC53
accent
#D94FD1
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E297A

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

Preview Lab → · Contrast checker → · Palette generator →

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