#2A379E#2A379E

#2A379E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.166 H 271.0°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2A379E
RGBrgb(42, 55, 158)
HSLhsl(233, 58%, 39%)
HSVhsv(233, 73%, 62%)
CMYKcmyk(73.4%, 65.2%, 0%, 38%)
CIE-LABlab(28.62, 31.17, -57.40)
CIE-LCHlch(28.62, 65.32, 298.51°)
OKLaboklab(39.71% 0.0029 -0.1659)
OKLCHoklch(39.71% 0.166 271)
XYZxyz(8.4905, 5.6924, 32.9924)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A379E #9E912A
analogous
#2A719E #2A379E #572A9E
triadic
#2A379E #9E2A37 #379E2A
tetradic
#2A379E #9E2A71 #9E912A #2A9E57
square
#2A379E #9E2A71 #9E912A #2A9E57
split-complementary
#2A379E #9E572A #719E2A
monochromatic
#10153D #1D266E #2A379E #3A4BCB #6B77D8

Accessibility & contrast

On white

9.82
#2A379E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A379E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A379E
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A379E#FFFFFF#000000##FFFFFF
##2A379E1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a379e;
/* rgb */ color: rgb(42, 55, 158);
/* oklch */ color: oklch(39.7% 0.166 271.0);
Tailwind
colors: {
  custom: {
    50: '#756ebc',
    500: '#2a379e',
    950: '#000000',
  },
}
SCSS
$custom: #2a379e;
$custom-light: #756ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a379e",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 158
  },
  "hsl": {
    "h": 233.276,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39714,
    "c": 0.16588,
    "h": 271
  },
  "luminance": 0.05693
}

Semantic roles & 50–950 ramp

primary
#2A379E
secondary
#BEB466
accent
#D047E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A379E

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

Preview Lab → · Contrast checker → · Palette generator →

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