#2A39AA#2A39AA

#2A39AA is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.179 H 270.2°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2A39AA
RGBrgb(42, 57, 170)
HSLhsl(233, 60%, 42%)
HSVhsv(233, 75%, 67%)
CMYKcmyk(75.3%, 66.5%, 0%, 33.3%)
CIE-LABlab(30.21, 34.27, -62.05)
CIE-LCHlch(30.21, 70.88, 298.91°)
OKLaboklab(41.21% 0.0008 -0.1795)
OKLCHoklch(41.21% 0.179 270.2)
XYZxyz(9.6712, 6.3197, 38.7326)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39AA #AA9B2A
analogous
#2A79AA #2A39AA #5B2AAA
triadic
#2A39AA #AA2A39 #39AA2A
tetradic
#2A39AA #AA2A79 #AA9B2A #2AAA5B
square
#2A39AA #AA2A79 #AA9B2A #2AAA5B
split-complementary
#2A39AA #AA5B2A #79AA2A
monochromatic
#121848 #1E2979 #2A39AA #4152D0 #727FDC

Accessibility & contrast

On white

9.27
#2A39AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A39AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39AA
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39AA#FFFFFF#000000##FFFFFF
##2A39AA1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a39aa;
/* rgb */ color: rgb(42, 57, 170);
/* oklch */ color: oklch(41.2% 0.179 270.2);
Tailwind
colors: {
  custom: {
    50: '#786fc4',
    500: '#2a39aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a39aa;
$custom-light: #786fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39aa",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 232.969,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41207,
    "c": 0.17946,
    "h": 270.2
  },
  "luminance": 0.06321
}

Semantic roles & 50–950 ramp

primary
#2A39AA
secondary
#C3B96C
accent
#D144E4
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A39AA

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

Preview Lab → · Contrast checker → · Palette generator →

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