#2A3372#2A3372

#2A3372 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.1% C 0.108 H 273.4°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2A3372
RGBrgb(42, 51, 114)
HSLhsl(233, 46%, 31%)
HSVhsv(233, 63%, 45%)
CMYKcmyk(63.2%, 55.3%, 0%, 55.3%)
CIE-LABlab(23.92, 17.46, -37.66)
CIE-LCHlch(23.92, 41.51, 294.87°)
OKLaboklab(35.08% 0.0064 -0.1079)
OKLCHoklch(35.08% 0.108 273.4)
XYZxyz(5.1749, 4.0744, 16.4301)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3372 #72692A
analogous
#2A5772 #2A3372 #452A72
triadic
#2A3372 #722A33 #33722A
tetradic
#2A3372 #722A57 #72692A #2A7245
square
#2A3372 #722A57 #72692A #2A7245
split-complementary
#2A3372 #72452A #57722A
monochromatic
#090B19 #1A1F45 #2A3372 #3A479F #5663C1

Accessibility & contrast

On white

11.57
#2A3372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A3372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3372
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3372#FFFFFF#000000##FFFFFF
##2A33721.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3C74
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#00424D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3372;
/* rgb */ color: rgb(42, 51, 114);
/* oklch */ color: oklch(35.1% 0.108 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b6a9b',
    500: '#2a3372',
    950: '#000000',
  },
}
SCSS
$custom: #2a3372;
$custom-light: #6b6a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3372",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 114
  },
  "hsl": {
    "h": 232.5,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35082,
    "c": 0.10811,
    "h": 273.4
  },
  "luminance": 0.04075
}

Semantic roles & 50–950 ramp

primary
#2A3372
secondary
#A49A54
accent
#C552D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3372

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

Preview Lab → · Contrast checker → · Palette generator →

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