#2A39B3#2A39B3

#2A39B3 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.191 H 270.0°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2A39B3
RGBrgb(42, 57, 179)
HSLhsl(233, 62%, 43%)
HSVhsv(233, 77%, 70%)
CMYKcmyk(76.5%, 68.2%, 0%, 29.8%)
CIE-LABlab(31.05, 37.51, -66.04)
CIE-LCHlch(31.05, 75.95, 299.60°)
OKLaboklab(42.08% 0.0001 -0.1911)
OKLCHoklch(42.08% 0.191 270)
XYZxyz(10.5519, 6.6720, 43.3708)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39B3 #B3A42A
analogous
#2A7DB3 #2A39B3 #602AB3
triadic
#2A39B3 #B32A39 #39B32A
tetradic
#2A39B3 #B32A7D #B3A42A #2AB360
square
#2A39B3 #B32A7D #B3A42A #2AB360
split-complementary
#2A39B3 #B3602A #7DB32A
monochromatic
#131950 #1E2981 #2A39B3 #4656D4 #7883DF

Accessibility & contrast

On white

9.00
#2A39B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A39B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39B3
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39B3#FFFFFF#000000##FFFFFF
##2A39B31.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a39b3;
/* rgb */ color: rgb(42, 57, 179);
/* oklch */ color: oklch(42.1% 0.191 270.0);
Tailwind
colors: {
  custom: {
    50: '#7a70cb',
    500: '#2a39b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a39b3;
$custom-light: #7a70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39b3",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 233.431,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42078,
    "c": 0.19113,
    "h": 270
  },
  "luminance": 0.06673
}

Semantic roles & 50–950 ramp

primary
#2A39B3
secondary
#C7BE72
accent
#D343E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A39B3

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

Preview Lab → · Contrast checker → · Palette generator →

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