#2A39B9#2A39B9

#2A39B9 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.7% C 0.199 H 269.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2A39B9
RGBrgb(42, 57, 185)
HSLhsl(234, 63%, 45%)
HSVhsv(234, 77%, 73%)
CMYKcmyk(77.3%, 69.2%, 0%, 27.5%)
CIE-LABlab(31.62, 39.65, -68.65)
CIE-LCHlch(31.62, 79.28, 300.01°)
OKLaboklab(42.67% -0.0005 -0.1987)
OKLCHoklch(42.67% 0.199 269.9)
XYZxyz(11.1719, 6.9200, 46.6364)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39B9 #B9AA2A
analogous
#2A81B9 #2A39B9 #622AB9
triadic
#2A39B9 #B92A39 #39B92A
tetradic
#2A39B9 #B92A81 #B9AA2A #2AB962
square
#2A39B9 #B92A81 #B9AA2A #2AB962
split-complementary
#2A39B9 #B9622A #81B92A
monochromatic
#131A55 #1F2A87 #2A39B9 #4A59D6 #7C87E1

Accessibility & contrast

On white

8.81
#2A39B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A39B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39B9
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39B9#FFFFFF#000000##FFFFFF
##2A39B91.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#0044B7
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a39b9;
/* rgb */ color: rgb(42, 57, 185);
/* oklch */ color: oklch(42.7% 0.199 269.9);
Tailwind
colors: {
  custom: {
    50: '#7b70cf',
    500: '#2a39b9',
    950: '#000000',
  },
}
SCSS
$custom: #2a39b9;
$custom-light: #7b70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39b9",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 233.706,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4267,
    "c": 0.19875,
    "h": 269.9
  },
  "luminance": 0.06921
}

Semantic roles & 50–950 ramp

primary
#2A39B9
secondary
#CAC175
accent
#D542E6
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2A39B9

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

Preview Lab → · Contrast checker → · Palette generator →

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