#2E22A5#2E22A5

#2E22A5 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.5% C 0.196 H 275.4°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2E22A5
RGBrgb(46, 34, 165)
HSLhsl(245, 66%, 39%)
HSVhsv(245, 79%, 65%)
CMYKcmyk(72.1%, 79.4%, 0%, 35.3%)
CIE-LABlab(25.08, 46.43, -67.47)
CIE-LCHlch(25.08, 81.90, 304.53°)
OKLaboklab(37.45% 0.0184 -0.1951)
OKLCHoklch(37.45% 0.196 275.4)
XYZxyz(8.4880, 4.4407, 35.9998)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E22A5 #99A522
analogous
#2258A5 #2E22A5 #7022A5
triadic
#2E22A5 #A52E22 #22A52E
tetradic
#2E22A5 #A52258 #99A522 #22A570
square
#2E22A5 #A52258 #99A522 #22A570
split-complementary
#2E22A5 #A57022 #58A522
monochromatic
#120D40 #201872 #2E22A5 #3F30D4 #6E63DF

Accessibility & contrast

On white

11.12
#2E22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2E22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E22A5
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E22A5#FFFFFF#000000##FFFFFF
##2E22A51.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0036A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e22a5;
/* rgb */ color: rgb(46, 34, 165);
/* oklch */ color: oklch(37.5% 0.196 275.4);
Tailwind
colors: {
  custom: {
    50: '#7a60c1',
    500: '#2e22a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e22a5;
$custom-light: #7a60c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e22a5",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 245.496,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37453,
    "c": 0.19595,
    "h": 275.4
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#2E22A5
secondary
#BBC45F
accent
#E93FD9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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