#2A39B7#2A39B7

#2A39B7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.196 H 269.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2A39B7
RGBrgb(42, 57, 183)
HSLhsl(234, 63%, 44%)
HSVhsv(234, 77%, 72%)
CMYKcmyk(77%, 68.9%, 0%, 28.2%)
CIE-LABlab(31.43, 38.94, -67.78)
CIE-LCHlch(31.43, 78.17, 299.88°)
OKLaboklab(42.47% -0.0003 -0.1962)
OKLCHoklch(42.47% 0.196 269.9)
XYZxyz(10.9623, 6.8362, 45.5323)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39B7 #B7A82A
analogous
#2A80B7 #2A39B7 #622AB7
triadic
#2A39B7 #B72A39 #39B72A
tetradic
#2A39B7 #B72A80 #B7A82A #2AB762
square
#2A39B7 #B72A80 #B7A82A #2AB762
split-complementary
#2A39B7 #B7622A #80B72A
monochromatic
#131A53 #1F2985 #2A39B7 #4958D5 #7B86E1

Accessibility & contrast

On white

8.87
#2A39B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2A39B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39B7
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39B7#FFFFFF#000000##FFFFFF
##2A39B71.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a39b7;
/* rgb */ color: rgb(42, 57, 183);
/* oklch */ color: oklch(42.5% 0.196 269.9);
Tailwind
colors: {
  custom: {
    50: '#7b70ce',
    500: '#2a39b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a39b7;
$custom-light: #7b70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39b7",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 233.617,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42472,
    "c": 0.19622,
    "h": 269.9
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

primary
#2A39B7
secondary
#C9C074
accent
#D442E6
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2A39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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