#2A39B8#2A39B8

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

Color values

HEX#2A39B8
RGBrgb(42, 57, 184)
HSLhsl(234, 63%, 44%)
HSVhsv(234, 77%, 72%)
CMYKcmyk(77.2%, 69%, 0%, 27.8%)
CIE-LABlab(31.53, 39.29, -68.22)
CIE-LCHlch(31.53, 78.72, 299.94°)
OKLaboklab(42.57% -0.0004 -0.1975)
OKLCHoklch(42.57% 0.197 269.9)
XYZxyz(11.0667, 6.8780, 46.0824)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39B8 #B8A92A
analogous
#2A80B8 #2A39B8 #622AB8
triadic
#2A39B8 #B82A39 #39B82A
tetradic
#2A39B8 #B82A80 #B8A92A #2AB862
square
#2A39B8 #B82A80 #B8A92A #2AB862
split-complementary
#2A39B8 #B8622A #80B82A
monochromatic
#131A54 #1F2A86 #2A39B8 #4A58D6 #7B86E1

Accessibility & contrast

On white

8.84
#2A39B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A39B8
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39B8#FFFFFF#000000##FFFFFF
##2A39B81.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a39b8;
/* rgb */ color: rgb(42, 57, 184);
/* oklch */ color: oklch(42.6% 0.197 269.9);
Tailwind
colors: {
  custom: {
    50: '#7b70ce',
    500: '#2a39b8',
    950: '#000000',
  },
}
SCSS
$custom: #2a39b8;
$custom-light: #7b70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39b8",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 233.662,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42571,
    "c": 0.19749,
    "h": 269.9
  },
  "luminance": 0.06879
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A39B8

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

Preview Lab → · Contrast checker → · Palette generator →

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