#2A227D#2A227D

#2A227D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.147 H 278.6°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#2A227D
RGBrgb(42, 34, 125)
HSLhsl(245, 57%, 31%)
HSVhsv(245, 73%, 49%)
CMYKcmyk(66.4%, 72.8%, 0%, 51%)
CIE-LABlab(20.50, 32.80, -50.23)
CIE-LCHlch(20.50, 59.99, 303.15°)
OKLaboklab(32.87% 0.0218 -0.1449)
OKLCHoklch(32.87% 0.147 278.6)
XYZxyz(5.2274, 3.1165, 19.7241)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A227D #757D22
analogous
#22477D #2A227D #57227D
triadic
#2A227D #7D2A22 #227D2A
tetradic
#2A227D #7D2247 #757D22 #227D57
square
#2A227D #7D2247 #757D22 #227D57
split-complementary
#2A227D #7D5722 #477D22
monochromatic
#0A081D #1A154D #2A227D #3A2FAD #574BCE

Accessibility & contrast

On white

12.94
#2A227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A227D
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A227D#FFFFFF#000000##FFFFFF
##2A227D1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a227d;
/* rgb */ color: rgb(42, 34, 125);
/* oklch */ color: oklch(32.9% 0.147 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f5ea4',
    500: '#2a227d',
    950: '#000000',
  },
}
SCSS
$custom: #2a227d;
$custom-light: #6f5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a227d",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 245.275,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32871,
    "c": 0.14656,
    "h": 278.6
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#2A227D
secondary
#A7B04B
accent
#E047D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A227D

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

Preview Lab → · Contrast checker → · Palette generator →

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