#2A379F#2A379F

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

Color values

HEX#2A379F
RGBrgb(42, 55, 159)
HSLhsl(233, 58%, 39%)
HSVhsv(233, 74%, 62%)
CMYKcmyk(73.6%, 65.4%, 0%, 37.6%)
CIE-LABlab(28.71, 31.54, -57.86)
CIE-LCHlch(28.71, 65.90, 298.60°)
OKLaboklab(39.81% 0.0028 -0.1672)
OKLCHoklch(39.81% 0.167 271)
XYZxyz(8.5769, 5.7269, 33.4476)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A379F #9F922A
analogous
#2A729F #2A379F #572A9F
triadic
#2A379F #9F2A37 #379F2A
tetradic
#2A379F #9F2A72 #9F922A #2A9F57
square
#2A379F #9F2A72 #9F922A #2A9F57
split-complementary
#2A379F #9F572A #729F2A
monochromatic
#10163E #1D266F #2A379F #3B4BCB #6B77D8

Accessibility & contrast

On white

9.79
#2A379F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A379F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A379F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A379F#FFFFFF#000000##FFFFFF
##2A379F1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a379f;
/* rgb */ color: rgb(42, 55, 159);
/* oklch */ color: oklch(39.8% 0.167 271.0);
Tailwind
colors: {
  custom: {
    50: '#756ebc',
    500: '#2a379f',
    950: '#000000',
  },
}
SCSS
$custom: #2a379f;
$custom-light: #756ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a379f",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 159
  },
  "hsl": {
    "h": 233.333,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39808,
    "c": 0.16723,
    "h": 271
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#2A379F
secondary
#BFB566
accent
#D046E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A379F

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

Preview Lab → · Contrast checker → · Palette generator →

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