#2A39AB#2A39AB

#2A39AB is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.3% C 0.181 H 270.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2A39AB
RGBrgb(42, 57, 171)
HSLhsl(233, 61%, 42%)
HSVhsv(233, 75%, 67%)
CMYKcmyk(75.4%, 66.7%, 0%, 32.9%)
CIE-LABlab(30.30, 34.63, -62.49)
CIE-LCHlch(30.30, 71.45, 298.99°)
OKLaboklab(41.3% 0.0007 -0.1808)
OKLCHoklch(41.3% 0.181 270.2)
XYZxyz(9.7661, 6.3577, 39.2326)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39AB #AB9C2A
analogous
#2A7AAB #2A39AB #5C2AAB
triadic
#2A39AB #AB2A39 #39AB2A
tetradic
#2A39AB #AB2A7A #AB9C2A #2AAB5C
square
#2A39AB #AB2A7A #AB9C2A #2AAB5C
split-complementary
#2A39AB #AB5C2A #7AAB2A
monochromatic
#121849 #1E297A #2A39AB #4252D1 #737FDD

Accessibility & contrast

On white

9.24
#2A39AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A39AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39AB
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39AB#FFFFFF#000000##FFFFFF
##2A39AB1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a39ab;
/* rgb */ color: rgb(42, 57, 171);
/* oklch */ color: oklch(41.3% 0.181 270.2);
Tailwind
colors: {
  custom: {
    50: '#786fc5',
    500: '#2a39ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a39ab;
$custom-light: #786fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39ab",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 233.023,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41303,
    "c": 0.18077,
    "h": 270.2
  },
  "luminance": 0.06359
}

Semantic roles & 50–950 ramp

primary
#2A39AB
secondary
#C4BA6D
accent
#D144E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A39AB

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

Preview Lab → · Contrast checker → · Palette generator →

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