#2A39B5#2A39B5

#2A39B5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.3% C 0.194 H 270.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2A39B5
RGBrgb(42, 57, 181)
HSLhsl(234, 62%, 44%)
HSVhsv(234, 77%, 71%)
CMYKcmyk(76.8%, 68.5%, 0%, 29%)
CIE-LABlab(31.24, 38.23, -66.91)
CIE-LCHlch(31.24, 77.06, 299.74°)
OKLaboklab(42.27% -0.0001 -0.1937)
OKLCHoklch(42.27% 0.194 270)
XYZxyz(10.7556, 6.7535, 44.4438)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39B5 #B5A62A
analogous
#2A7EB5 #2A39B5 #602AB5
triadic
#2A39B5 #B52A39 #39B52A
tetradic
#2A39B5 #B52A7E #B5A62A #2AB560
square
#2A39B5 #B52A7E #B5A62A #2AB560
split-complementary
#2A39B5 #B5602A #7EB52A
monochromatic
#131A52 #1E2983 #2A39B5 #4857D4 #7984E0

Accessibility & contrast

On white

8.93
#2A39B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2A39B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39B5
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39B5#FFFFFF#000000##FFFFFF
##2A39B51.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a39b5;
/* rgb */ color: rgb(42, 57, 181);
/* oklch */ color: oklch(42.3% 0.194 270.0);
Tailwind
colors: {
  custom: {
    50: '#7a70cc',
    500: '#2a39b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a39b5;
$custom-light: #7a70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39b5",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 233.525,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42274,
    "c": 0.19368,
    "h": 270
  },
  "luminance": 0.06755
}

Semantic roles & 50–950 ramp

primary
#2A39B5
secondary
#C8BF73
accent
#D442E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2A39B5

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

Preview Lab → · Contrast checker → · Palette generator →

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