#2A39B0#2A39B0

#2A39B0 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.187 H 270.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2A39B0
RGBrgb(42, 57, 176)
HSLhsl(233, 61%, 43%)
HSVhsv(233, 76%, 69%)
CMYKcmyk(76.1%, 67.6%, 0%, 31%)
CIE-LABlab(30.76, 36.44, -64.72)
CIE-LCHlch(30.76, 74.27, 299.38°)
OKLaboklab(41.79% 0.0003 -0.1873)
OKLCHoklch(41.79% 0.187 270.1)
XYZxyz(10.2518, 6.5520, 41.7902)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A39B0 #B0A12A
analogous
#2A7CB0 #2A39B0 #5E2AB0
triadic
#2A39B0 #B02A39 #39B02A
tetradic
#2A39B0 #B02A7C #B0A12A #2AB05E
square
#2A39B0 #B02A7C #B0A12A #2AB05E
split-complementary
#2A39B0 #B05E2A #7CB02A
monochromatic
#12194D #1E297F #2A39B0 #4555D3 #7682DE

Accessibility & contrast

On white

9.09
#2A39B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2A39B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A39B0
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A39B0#FFFFFF#000000##FFFFFF
##2A39B01.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#0042AE
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a39b0;
/* rgb */ color: rgb(42, 57, 176);
/* oklch */ color: oklch(41.8% 0.187 270.1);
Tailwind
colors: {
  custom: {
    50: '#796fc9',
    500: '#2a39b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a39b0;
$custom-light: #796fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a39b0",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 176
  },
  "hsl": {
    "h": 233.284,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41785,
    "c": 0.18727,
    "h": 270.1
  },
  "luminance": 0.06553
}

Semantic roles & 50–950 ramp

primary
#2A39B0
secondary
#C6BC70
accent
#D343E5
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A39B0

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

Preview Lab → · Contrast checker → · Palette generator →

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