#2A39A4#2A39A4

#2A39A4 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.172 H 270.4°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2A39A4
RGBrgb(42, 57, 164)
HSLhsl(233, 59%, 40%)
HSVhsv(233, 74%, 64%)
CMYKcmyk(74.4%, 65.2%, 0%, 35.7%)
CIE-LABlab(29.66, 32.07, -59.33)
CIE-LCHlch(29.66, 67.45, 298.39°)
OKLaboklab(40.64% 0.0012 -0.1715)
OKLCHoklch(40.64% 0.172 270.4)
XYZxyz(9.1165, 6.0979, 35.8113)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39A4 #A4952A
analogous
#2A76A4 #2A39A4 #582AA4
triadic
#2A39A4 #A42A39 #39A42A
tetradic
#2A39A4 #A42A76 #A4952A #2AA458
square
#2A39A4 #A42A76 #A4952A #2AA458
split-complementary
#2A39A4 #A4582A #76A42A
monochromatic
#111743 #1E2873 #2A39A4 #3E4FCD #6E7CDA

Accessibility & contrast

On white

9.46
#2A39A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A39A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39A4
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39A4#FFFFFF#000000##FFFFFF
##2A39A41.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a39a4;
/* rgb */ color: rgb(42, 57, 164);
/* oklch */ color: oklch(40.6% 0.172 270.4);
Tailwind
colors: {
  custom: {
    50: '#766fc0',
    500: '#2a39a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a39a4;
$custom-light: #766fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39a4",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 164
  },
  "hsl": {
    "h": 232.623,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40639,
    "c": 0.17152,
    "h": 270.4
  },
  "luminance": 0.06099
}

Semantic roles & 50–950 ramp

primary
#2A39A4
secondary
#C1B669
accent
#CF45E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A39A4

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

Preview Lab → · Contrast checker → · Palette generator →

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