#2A39A7#2A39A7

#2A39A7 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.176 H 270.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#2A39A7
RGBrgb(42, 57, 167)
HSLhsl(233, 60%, 41%)
HSVhsv(233, 75%, 65%)
CMYKcmyk(74.9%, 65.9%, 0%, 34.5%)
CIE-LABlab(29.93, 33.17, -60.70)
CIE-LCHlch(29.93, 69.17, 298.66°)
OKLaboklab(40.92% 0.001 -0.1755)
OKLCHoklch(40.92% 0.176 270.3)
XYZxyz(9.3906, 6.2075, 37.2550)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39A7 #A7982A
analogous
#2A77A7 #2A39A7 #592AA7
triadic
#2A39A7 #A72A39 #39A72A
tetradic
#2A39A7 #A72A77 #A7982A #2AA759
square
#2A39A7 #A72A77 #A7982A #2AA759
split-complementary
#2A39A7 #A7592A #77A72A
monochromatic
#111845 #1E2876 #2A39A7 #3F51CF #707DDB

Accessibility & contrast

On white

9.37
#2A39A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A39A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39A7
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39A7#FFFFFF#000000##FFFFFF
##2A39A71.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a39a7;
/* rgb */ color: rgb(42, 57, 167);
/* oklch */ color: oklch(40.9% 0.176 270.3);
Tailwind
colors: {
  custom: {
    50: '#776fc2',
    500: '#2a39a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a39a7;
$custom-light: #776fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39a7",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 167
  },
  "hsl": {
    "h": 232.8,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40922,
    "c": 0.17551,
    "h": 270.3
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#2A39A7
secondary
#C2B86B
accent
#D045E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A39A7

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

Preview Lab → · Contrast checker → · Palette generator →

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