#2A339C#2A339C

#2A339C is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.168 H 271.9°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2A339C
RGBrgb(42, 51, 156)
HSLhsl(235, 58%, 39%)
HSVhsv(235, 73%, 61%)
CMYKcmyk(73.1%, 67.3%, 0%, 38.8%)
CIE-LABlab(27.46, 33.04, -58.08)
CIE-LCHlch(27.46, 66.82, 299.63°)
OKLaboklab(38.81% 0.0057 -0.1679)
OKLCHoklch(38.81% 0.168 271.9)
XYZxyz(8.1374, 5.2594, 32.0324)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A339C #9C932A
analogous
#2A6C9C #2A339C #5A2A9C
triadic
#2A339C #9C2A33 #339C2A
tetradic
#2A339C #9C2A6C #9C932A #2A9C5A
square
#2A339C #9C2A6C #9C932A #2A9C5A
split-complementary
#2A339C #9C5A2A #6C9C2A
monochromatic
#10133C #1D236C #2A339C #3945CA #6A72D7

Accessibility & contrast

On white

10.23
#2A339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A339C
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A339C#FFFFFF#000000##FFFFFF
##2A339C1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a339c;
/* rgb */ color: rgb(42, 51, 156);
/* oklch */ color: oklch(38.8% 0.168 271.9);
Tailwind
colors: {
  custom: {
    50: '#756bba',
    500: '#2a339c',
    950: '#000000',
  },
}
SCSS
$custom: #2a339c;
$custom-light: #756bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a339c",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 235.263,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38809,
    "c": 0.168,
    "h": 271.9
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A339C

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

Preview Lab → · Contrast checker → · Palette generator →

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