#2A39A2#2A39A2

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

Color values

HEX#2A39A2
RGBrgb(42, 57, 162)
HSLhsl(233, 59%, 40%)
HSVhsv(233, 74%, 64%)
CMYKcmyk(74.1%, 64.8%, 0%, 36.5%)
CIE-LABlab(29.48, 31.34, -58.42)
CIE-LCHlch(29.48, 66.29, 298.21°)
OKLaboklab(40.45% 0.0013 -0.1688)
OKLCHoklch(40.45% 0.169 270.4)
XYZxyz(8.9373, 6.0262, 34.8676)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39A2 #A2932A
analogous
#2A75A2 #2A39A2 #572AA2
triadic
#2A39A2 #A22A39 #39A22A
tetradic
#2A39A2 #A22A75 #A2932A #2AA257
square
#2A39A2 #A22A75 #A2932A #2AA257
split-complementary
#2A39A2 #A2572A #75A22A
monochromatic
#111741 #1D2871 #2A39A2 #3D4FCD #6D7BD9

Accessibility & contrast

On white

9.52
#2A39A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A39A2
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39A2#FFFFFF#000000##FFFFFF
##2A39A21.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a39a2;
/* rgb */ color: rgb(42, 57, 162);
/* oklch */ color: oklch(40.5% 0.169 270.4);
Tailwind
colors: {
  custom: {
    50: '#766fbe',
    500: '#2a39a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a39a2;
$custom-light: #766fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39a2",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 162
  },
  "hsl": {
    "h": 232.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.40452,
    "c": 0.16885,
    "h": 270.4
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#2A39A2
secondary
#C0B568
accent
#CE46E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A39A2

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

Preview Lab → · Contrast checker → · Palette generator →

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