#2A39B1#2A39B1

#2A39B1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.189 H 270.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2A39B1
RGBrgb(42, 57, 177)
HSLhsl(233, 62%, 43%)
HSVhsv(233, 76%, 69%)
CMYKcmyk(76.3%, 67.8%, 0%, 30.6%)
CIE-LABlab(30.86, 36.80, -65.16)
CIE-LCHlch(30.86, 74.83, 299.45°)
OKLaboklab(41.88% 0.0002 -0.1886)
OKLCHoklch(41.88% 0.189 270.1)
XYZxyz(10.3511, 6.5917, 42.3132)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39B1 #B1A22A
analogous
#2A7DB1 #2A39B1 #5E2AB1
triadic
#2A39B1 #B12A39 #39B12A
tetradic
#2A39B1 #B12A7D #B1A22A #2AB15E
square
#2A39B1 #B12A7D #B1A22A #2AB15E
split-complementary
#2A39B1 #B15E2A #7DB12A
monochromatic
#13194E #1E2980 #2A39B1 #4555D3 #7782DF

Accessibility & contrast

On white

9.06
#2A39B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A39B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39B1
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39B1#FFFFFF#000000##FFFFFF
##2A39B11.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a39b1;
/* rgb */ color: rgb(42, 57, 177);
/* oklch */ color: oklch(41.9% 0.189 270.1);
Tailwind
colors: {
  custom: {
    50: '#796fc9',
    500: '#2a39b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a39b1;
$custom-light: #796fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39b1",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 233.333,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41883,
    "c": 0.18856,
    "h": 270.1
  },
  "luminance": 0.06593
}

Semantic roles & 50–950 ramp

primary
#2A39B1
secondary
#C6BD70
accent
#D343E5
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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