#2A39A9#2A39A9

#2A39A9 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.178 H 270.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2A39A9
RGBrgb(42, 57, 169)
HSLhsl(233, 60%, 41%)
HSVhsv(233, 75%, 66%)
CMYKcmyk(75.1%, 66.3%, 0%, 33.7%)
CIE-LABlab(30.11, 33.90, -61.60)
CIE-LCHlch(30.11, 70.31, 298.83°)
OKLaboklab(41.11% 0.0009 -0.1781)
OKLCHoklch(41.11% 0.178 270.3)
XYZxyz(9.5770, 6.2820, 38.2363)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39A9 #A99A2A
analogous
#2A79A9 #2A39A9 #5B2AA9
triadic
#2A39A9 #A92A39 #39A92A
tetradic
#2A39A9 #A92A79 #A99A2A #2AA95B
square
#2A39A9 #A92A79 #A99A2A #2AA95B
split-complementary
#2A39A9 #A95B2A #79A92A
monochromatic
#121847 #1E2878 #2A39A9 #4151D0 #727EDC

Accessibility & contrast

On white

9.31
#2A39A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A39A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39A9
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39A9#FFFFFF#000000##FFFFFF
##2A39A91.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0041A7
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a39a9;
/* rgb */ color: rgb(42, 57, 169);
/* oklch */ color: oklch(41.1% 0.178 270.3);
Tailwind
colors: {
  custom: {
    50: '#776fc4',
    500: '#2a39a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a39a9;
$custom-light: #776fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39a9",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 169
  },
  "hsl": {
    "h": 232.913,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41112,
    "c": 0.17815,
    "h": 270.3
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#2A39A9
secondary
#C3B96C
accent
#D144E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A39A9

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

Preview Lab → · Contrast checker → · Palette generator →

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