#2A39A6#2A39A6

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

Color values

HEX#2A39A6
RGBrgb(42, 57, 166)
HSLhsl(233, 60%, 41%)
HSVhsv(233, 75%, 65%)
CMYKcmyk(74.7%, 65.7%, 0%, 34.9%)
CIE-LABlab(29.84, 32.81, -60.24)
CIE-LCHlch(29.84, 68.60, 298.57°)
OKLaboklab(40.83% 0.0011 -0.1742)
OKLCHoklch(40.83% 0.174 270.3)
XYZxyz(9.2986, 6.1707, 36.7700)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39A6 #A6972A
analogous
#2A77A6 #2A39A6 #592AA6
triadic
#2A39A6 #A62A39 #39A62A
tetradic
#2A39A6 #A62A77 #A6972A #2AA659
square
#2A39A6 #A62A77 #A6972A #2AA659
split-complementary
#2A39A6 #A6592A #77A62A
monochromatic
#111744 #1E2875 #2A39A6 #3F50CE #707DDB

Accessibility & contrast

On white

9.40
#2A39A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A39A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39A6
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39A6#FFFFFF#000000##FFFFFF
##2A39A61.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a39a6;
/* rgb */ color: rgb(42, 57, 166);
/* oklch */ color: oklch(40.8% 0.174 270.3);
Tailwind
colors: {
  custom: {
    50: '#776fc1',
    500: '#2a39a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a39a6;
$custom-light: #776fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39a6",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 166
  },
  "hsl": {
    "h": 232.742,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40827,
    "c": 0.17418,
    "h": 270.3
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A39A6

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

Preview Lab → · Contrast checker → · Palette generator →

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