#2A327F#2A327F

#2A327F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.129 H 273.5°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2A327F
RGBrgb(42, 50, 127)
HSLhsl(234, 50%, 33%)
HSVhsv(234, 67%, 50%)
CMYKcmyk(66.9%, 60.6%, 0%, 50.2%)
CIE-LABlab(24.66, 23.01, -44.71)
CIE-LCHlch(24.66, 50.28, 297.24°)
OKLaboklab(35.96% 0.0079 -0.1287)
OKLCHoklch(35.96% 0.129 273.5)
XYZxyz(5.9249, 4.3052, 20.5933)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A327F #7F772A
analogous
#2A5C7F #2A327F #4C2A7F
triadic
#2A327F #7F2A32 #327F2A
tetradic
#2A327F #7F2A5C #7F772A #2A7F4C
square
#2A327F #7F2A5C #7F772A #2A7F4C
split-complementary
#2A327F #7F4C2A #5C7F2A
monochromatic
#0C0E23 #1B2051 #2A327F #3944AD #5B65C9

Accessibility & contrast

On white

11.28
#2A327F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A327F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A327F
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A327F#FFFFFF#000000##FFFFFF
##2A327F1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a327f;
/* rgb */ color: rgb(42, 50, 127);
/* oklch */ color: oklch(36.0% 0.129 273.5);
Tailwind
colors: {
  custom: {
    50: '#6e69a5',
    500: '#2a327f',
    950: '#000000',
  },
}
SCSS
$custom: #2a327f;
$custom-light: #6e69a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a327f",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 127
  },
  "hsl": {
    "h": 234.353,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35957,
    "c": 0.12891,
    "h": 273.5
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#2A327F
secondary
#AEA657
accent
#CD4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A327F

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

Preview Lab → · Contrast checker → · Palette generator →

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