#2A379D#2A379D

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

Color values

HEX#2A379D
RGBrgb(42, 55, 157)
HSLhsl(233, 58%, 39%)
HSVhsv(233, 73%, 62%)
CMYKcmyk(73.2%, 65%, 0%, 38.4%)
CIE-LABlab(28.53, 30.81, -56.94)
CIE-LCHlch(28.53, 64.74, 298.42°)
OKLaboklab(39.62% 0.0029 -0.1645)
OKLCHoklch(39.62% 0.165 271)
XYZxyz(8.4048, 5.6581, 32.5409)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A379D #9D902A
analogous
#2A719D #2A379D #572A9D
triadic
#2A379D #9D2A37 #379D2A
tetradic
#2A379D #9D2A71 #9D902A #2A9D57
square
#2A379D #9D2A71 #9D902A #2A9D57
split-complementary
#2A379D #9D572A #719D2A
monochromatic
#10153C #1D266D #2A379D #3A4ACA #6A77D7

Accessibility & contrast

On white

9.85
#2A379D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A379D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A379D
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A379D#FFFFFF#000000##FFFFFF
##2A379D1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a379d;
/* rgb */ color: rgb(42, 55, 157);
/* oklch */ color: oklch(39.6% 0.165 271.0);
Tailwind
colors: {
  custom: {
    50: '#756ebb',
    500: '#2a379d',
    950: '#000000',
  },
}
SCSS
$custom: #2a379d;
$custom-light: #756ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a379d",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 157
  },
  "hsl": {
    "h": 233.217,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3962,
    "c": 0.16454,
    "h": 271
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A379D

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

Preview Lab → · Contrast checker → · Palette generator →

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