#2E228E#2E228E

#2E228E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.168 H 278.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2E228E
RGBrgb(46, 34, 142)
HSLhsl(247, 61%, 35%)
HSVhsv(247, 76%, 56%)
CMYKcmyk(67.6%, 76.1%, 0%, 44.3%)
CIE-LABlab(22.57, 39.03, -57.49)
CIE-LCHlch(22.57, 69.49, 304.17°)
OKLaboklab(34.95% 0.024 -0.166)
OKLCHoklch(34.95% 0.168 278.2)
XYZxyz(6.5797, 3.6773, 25.9490)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E228E #828E22
analogous
#224C8E #2E228E #64228E
triadic
#2E228E #8E2E22 #228E2E
tetradic
#2E228E #8E224C #828E22 #228E64
square
#2E228E #8E224C #828E22 #228E64
split-complementary
#2E228E #8E6422 #4C8E22
monochromatic
#0E0A2B #1E165D #2E228E #3E2EBF #6354D6

Accessibility & contrast

On white

12.10
#2E228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E228E
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E228E#FFFFFF#000000##FFFFFF
##2E228E1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e228e;
/* rgb */ color: rgb(46, 34, 142);
/* oklch */ color: oklch(35.0% 0.168 278.2);
Tailwind
colors: {
  custom: {
    50: '#755fb0',
    500: '#2e228e',
    950: '#000000',
  },
}
SCSS
$custom: #2e228e;
$custom-light: #755fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e228e",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 246.667,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34953,
    "c": 0.16775,
    "h": 278.2
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#2E228E
secondary
#AEBA52
accent
#E443D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E228E

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

Preview Lab → · Contrast checker → · Palette generator →

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