#2A227B#2A227B

#2A227B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.144 H 278.9°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2A227B
RGBrgb(42, 34, 123)
HSLhsl(245, 57%, 31%)
HSVhsv(245, 72%, 48%)
CMYKcmyk(65.9%, 72.4%, 0%, 51.8%)
CIE-LABlab(20.31, 32.11, -49.28)
CIE-LCHlch(20.31, 58.81, 303.09°)
OKLaboklab(32.67% 0.0222 -0.1422)
OKLCHoklch(32.67% 0.144 278.9)
XYZxyz(5.1009, 3.0660, 19.0580)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A227B #737B22
analogous
#22467B #2A227B #56227B
triadic
#2A227B #7B2A22 #227B2A
tetradic
#2A227B #7B2246 #737B22 #227B56
square
#2A227B #7B2246 #737B22 #227B56
split-complementary
#2A227B #7B5622 #467B22
monochromatic
#09071B #1A154B #2A227B #3A2FAB #564ACD

Accessibility & contrast

On white

13.02
#2A227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A227B
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A227B#FFFFFF#000000##FFFFFF
##2A227B1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a227b;
/* rgb */ color: rgb(42, 34, 123);
/* oklch */ color: oklch(32.7% 0.144 278.9);
Tailwind
colors: {
  custom: {
    50: '#6f5ea2',
    500: '#2a227b',
    950: '#000000',
  },
}
SCSS
$custom: #2a227b;
$custom-light: #6f5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a227b",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 245.393,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32668,
    "c": 0.14388,
    "h": 278.9
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#2A227B
secondary
#A5AE4B
accent
#E048D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A227B

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

Preview Lab → · Contrast checker → · Palette generator →

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