#2A39B2#2A39B2

#2A39B2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.0% C 0.190 H 270.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2A39B2
RGBrgb(42, 57, 178)
HSLhsl(233, 62%, 43%)
HSVhsv(233, 76%, 70%)
CMYKcmyk(76.4%, 68%, 0%, 30.2%)
CIE-LABlab(30.95, 37.15, -65.60)
CIE-LCHlch(30.95, 75.39, 299.53°)
OKLaboklab(41.98% 0.0001 -0.1898)
OKLCHoklch(41.98% 0.19 270)
XYZxyz(10.4511, 6.6317, 42.8401)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39B2 #B2A32A
analogous
#2A7DB2 #2A39B2 #5F2AB2
triadic
#2A39B2 #B22A39 #39B22A
tetradic
#2A39B2 #B22A7D #B2A32A #2AB25F
square
#2A39B2 #B22A7D #B2A32A #2AB25F
split-complementary
#2A39B2 #B25F2A #7DB22A
monochromatic
#13194F #1E2980 #2A39B2 #4655D3 #7783DF

Accessibility & contrast

On white

9.03
#2A39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A39B2
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39B2#FFFFFF#000000##FFFFFF
##2A39B21.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a39b2;
/* rgb */ color: rgb(42, 57, 178);
/* oklch */ color: oklch(42.0% 0.190 270.0);
Tailwind
colors: {
  custom: {
    50: '#7a6fca',
    500: '#2a39b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a39b2;
$custom-light: #7a6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39b2",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 233.382,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4198,
    "c": 0.18984,
    "h": 270
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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