#2A339E#2A339E

#2A339E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.171 H 271.8°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2A339E
RGBrgb(42, 51, 158)
HSLhsl(235, 58%, 39%)
HSVhsv(235, 73%, 62%)
CMYKcmyk(73.4%, 67.7%, 0%, 38%)
CIE-LABlab(27.65, 33.76, -58.99)
CIE-LCHlch(27.65, 67.97, 299.78°)
OKLaboklab(39% 0.0055 -0.1706)
OKLCHoklch(39% 0.171 271.8)
XYZxyz(8.3081, 5.3277, 32.9316)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A339E #9E952A
analogous
#2A6D9E #2A339E #5B2A9E
triadic
#2A339E #9E2A33 #339E2A
tetradic
#2A339E #9E2A6D #9E952A #2A9E5B
square
#2A339E #9E2A6D #9E952A #2A9E5B
split-complementary
#2A339E #9E5B2A #6D9E2A
monochromatic
#10143D #1D236E #2A339E #3A46CB #6B73D8

Accessibility & contrast

On white

10.17
#2A339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A339E
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A339E#FFFFFF#000000##FFFFFF
##2A339E1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a339e;
/* rgb */ color: rgb(42, 51, 158);
/* oklch */ color: oklch(39.0% 0.171 271.8);
Tailwind
colors: {
  custom: {
    50: '#756bbc',
    500: '#2a339e',
    950: '#000000',
  },
}
SCSS
$custom: #2a339e;
$custom-light: #756bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a339e",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 235.345,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.17065,
    "h": 271.8
  },
  "luminance": 0.05329
}

Semantic roles & 50–950 ramp

primary
#2A339E
secondary
#BEB766
accent
#D547E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A339E

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

Preview Lab → · Contrast checker → · Palette generator →

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