#2A228F#2A228F

#2A228F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.170 H 276.1°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2A228F
RGBrgb(42, 34, 143)
HSLhsl(244, 62%, 35%)
HSVhsv(244, 76%, 56%)
CMYKcmyk(70.6%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.37, 38.91, -58.46)
CIE-LCHlch(22.37, 70.23, 303.65°)
OKLaboklab(34.76% 0.0182 -0.169)
OKLCHoklch(34.76% 0.17 276.1)
XYZxyz(6.4832, 3.6189, 26.3381)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A228F #878F22
analogous
#22508F #2A228F #61228F
triadic
#2A228F #8F2A22 #228F2A
tetradic
#2A228F #8F2250 #878F22 #228F61
square
#2A228F #8F2250 #878F22 #228F61
split-complementary
#2A228F #8F6122 #508F22
monochromatic
#0D0A2C #1B165E #2A228F #392EC0 #5E55D7

Accessibility & contrast

On white

12.18
#2A228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A228F
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A228F#FFFFFF#000000##FFFFFF
##2A228F1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a228f;
/* rgb */ color: rgb(42, 34, 143);
/* oklch */ color: oklch(34.8% 0.170 276.1);
Tailwind
colors: {
  custom: {
    50: '#735fb1',
    500: '#2a228f',
    950: '#000000',
  },
}
SCSS
$custom: #2a228f;
$custom-light: #735fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a228f",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 244.404,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34759,
    "c": 0.16995,
    "h": 276.1
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#2A228F
secondary
#B3BA52
accent
#E543D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A228F

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

Preview Lab → · Contrast checker → · Palette generator →

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