#2A39A3#2A39A3

#2A39A3 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.170 H 270.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#2A39A3
RGBrgb(42, 57, 163)
HSLhsl(233, 59%, 40%)
HSVhsv(233, 74%, 64%)
CMYKcmyk(74.2%, 65%, 0%, 36.1%)
CIE-LABlab(29.57, 31.71, -58.88)
CIE-LCHlch(29.57, 66.87, 298.30°)
OKLaboklab(40.55% 0.0012 -0.1702)
OKLCHoklch(40.55% 0.17 270.4)
XYZxyz(9.0266, 6.0619, 35.3376)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39A3 #A3942A
analogous
#2A75A3 #2A39A3 #572AA3
triadic
#2A39A3 #A32A39 #39A32A
tetradic
#2A39A3 #A32A75 #A3942A #2AA357
square
#2A39A3 #A32A75 #A3942A #2AA357
split-complementary
#2A39A3 #A3572A #75A32A
monochromatic
#111742 #1D2872 #2A39A3 #3D4FCD #6E7BDA

Accessibility & contrast

On white

9.49
#2A39A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A39A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39A3
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39A3#FFFFFF#000000##FFFFFF
##2A39A31.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0040A1
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a39a3;
/* rgb */ color: rgb(42, 57, 163);
/* oklch */ color: oklch(40.5% 0.170 270.4);
Tailwind
colors: {
  custom: {
    50: '#766fbf',
    500: '#2a39a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a39a3;
$custom-light: #766fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39a3",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 163
  },
  "hsl": {
    "h": 232.562,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40546,
    "c": 0.17019,
    "h": 270.4
  },
  "luminance": 0.06063
}

Semantic roles & 50–950 ramp

primary
#2A39A3
secondary
#C0B668
accent
#CF46E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A39A3

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

Preview Lab → · Contrast checker → · Palette generator →

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