#2A227A#2A227A

#2A227A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.143 H 279.0°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2A227A
RGBrgb(42, 34, 122)
HSLhsl(245, 56%, 31%)
HSVhsv(245, 72%, 48%)
CMYKcmyk(65.6%, 72.1%, 0%, 52.2%)
CIE-LABlab(20.21, 31.76, -48.80)
CIE-LCHlch(20.21, 58.23, 303.06°)
OKLaboklab(32.57% 0.0223 -0.1408)
OKLCHoklch(32.57% 0.143 279)
XYZxyz(5.0386, 3.0410, 18.7300)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A227A #727A22
analogous
#22467A #2A227A #56227A
triadic
#2A227A #7A2A22 #227A2A
tetradic
#2A227A #7A2246 #727A22 #227A56
square
#2A227A #7A2246 #727A22 #227A56
split-complementary
#2A227A #7A5622 #467A22
monochromatic
#09071A #1A154A #2A227A #3A2FAA #564ACD

Accessibility & contrast

On white

13.06
#2A227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A227A
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A227A#FFFFFF#000000##FFFFFF
##2A227A1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a227a;
/* rgb */ color: rgb(42, 34, 122);
/* oklch */ color: oklch(32.6% 0.143 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f5ea1',
    500: '#2a227a',
    950: '#000000',
  },
}
SCSS
$custom: #2a227a;
$custom-light: #6f5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a227a",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 245.455,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32568,
    "c": 0.14253,
    "h": 279
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#2A227A
secondary
#A4AD4B
accent
#E048D2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A227A

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

Preview Lab → · Contrast checker → · Palette generator →

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