#2E227E#2E227E

#2E227E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.147 H 280.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2E227E
RGBrgb(46, 34, 126)
HSLhsl(248, 58%, 31%)
HSVhsv(248, 73%, 49%)
CMYKcmyk(63.5%, 73%, 0%, 50.6%)
CIE-LABlab(20.95, 33.72, -50.12)
CIE-LCHlch(20.95, 60.41, 303.93°)
OKLaboklab(33.3% 0.0274 -0.1445)
OKLCHoklch(33.3% 0.147 280.7)
XYZxyz(5.4634, 3.2309, 20.0703)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E227E #727E22
analogous
#22447E #2E227E #5C227E
triadic
#2E227E #7E2E22 #227E2E
tetradic
#2E227E #7E2244 #727E22 #227E5C
square
#2E227E #7E2244 #727E22 #227E5C
split-complementary
#2E227E #7E5C22 #447E22
monochromatic
#0B081E #1C154E #2E227E #402FAE #5D4CCF

Accessibility & contrast

On white

12.76
#2E227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E227E
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E227E#FFFFFF#000000##FFFFFF
##2E227E1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e227e;
/* rgb */ color: rgb(46, 34, 126);
/* oklch */ color: oklch(33.3% 0.147 280.7);
Tailwind
colors: {
  custom: {
    50: '#715ea4',
    500: '#2e227e',
    950: '#000000',
  },
}
SCSS
$custom: #2e227e;
$custom-light: #715ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e227e",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 247.826,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33303,
    "c": 0.14708,
    "h": 280.7
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#2E227E
secondary
#A3B14B
accent
#E147CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E227E

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

Preview Lab → · Contrast checker → · Palette generator →

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