#2A229F#2A229F

#2A229F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.190 H 274.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2A229F
RGBrgb(42, 34, 159)
HSLhsl(244, 65%, 38%)
HSVhsv(244, 79%, 62%)
CMYKcmyk(73.6%, 78.6%, 0%, 37.6%)
CIE-LABlab(24.12, 44.17, -65.41)
CIE-LCHlch(24.12, 78.93, 304.03°)
OKLaboklab(36.52% 0.0145 -0.1892)
OKLCHoklch(36.52% 0.19 274.4)
XYZxyz(7.7828, 4.1387, 33.1829)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A229F #979F22
analogous
#22589F #2A229F #68229F
triadic
#2A229F #9F2A22 #229F2A
tetradic
#2A229F #9F2258 #979F22 #229F68
square
#2A229F #9F2258 #979F22 #229F68
split-complementary
#2A229F #9F6822 #589F22
monochromatic
#0F0C3A #1D176D #2A229F #372DD1 #675FDD

Accessibility & contrast

On white

11.49
#2A229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A229F
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A229F#FFFFFF#000000##FFFFFF
##2A229F1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a229f;
/* rgb */ color: rgb(42, 34, 159);
/* oklch */ color: oklch(36.5% 0.190 274.4);
Tailwind
colors: {
  custom: {
    50: '#7760bd',
    500: '#2a229f',
    950: '#000000',
  },
}
SCSS
$custom: #2a229f;
$custom-light: #7760bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a229f",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 243.84,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36515,
    "c": 0.18975,
    "h": 274.4
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#2A229F
secondary
#BBC15B
accent
#E840DD
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A229F

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

Preview Lab → · Contrast checker → · Palette generator →

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