#2A339A#2A339A

#2A339A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.165 H 272.0°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2A339A
RGBrgb(42, 51, 154)
HSLhsl(235, 57%, 38%)
HSVhsv(235, 73%, 60%)
CMYKcmyk(72.7%, 66.9%, 0%, 39.6%)
CIE-LABlab(27.28, 32.31, -57.17)
CIE-LCHlch(27.28, 65.67, 299.47°)
OKLaboklab(38.62% 0.0059 -0.1652)
OKLCHoklch(38.62% 0.165 272)
XYZxyz(7.9694, 5.1922, 31.1478)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A339A #9A912A
analogous
#2A6B9A #2A339A #592A9A
triadic
#2A339A #9A2A33 #339A2A
tetradic
#2A339A #9A2A6B #9A912A #2A9A59
square
#2A339A #9A2A6B #9A912A #2A9A59
split-complementary
#2A339A #9A592A #6B9A2A
monochromatic
#10133A #1D236A #2A339A #3844C9 #6871D6

Accessibility & contrast

On white

10.30
#2A339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A339A
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A339A#FFFFFF#000000##FFFFFF
##2A339A1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a339a;
/* rgb */ color: rgb(42, 51, 154);
/* oklch */ color: oklch(38.6% 0.165 272.0);
Tailwind
colors: {
  custom: {
    50: '#746bb9',
    500: '#2a339a',
    950: '#000000',
  },
}
SCSS
$custom: #2a339a;
$custom-light: #746bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a339a",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 235.179,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38617,
    "c": 0.16532,
    "h": 272
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#2A339A
secondary
#BCB563
accent
#D447E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #2A339A

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

Preview Lab → · Contrast checker → · Palette generator →

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