#2A339F#2A339F

#2A339F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.172 H 271.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2A339F
RGBrgb(42, 51, 159)
HSLhsl(235, 58%, 39%)
HSVhsv(235, 74%, 62%)
CMYKcmyk(73.6%, 67.9%, 0%, 37.6%)
CIE-LABlab(27.74, 34.12, -59.45)
CIE-LCHlch(27.74, 68.54, 299.85°)
OKLaboklab(39.1% 0.0054 -0.1719)
OKLCHoklch(39.1% 0.172 271.8)
XYZxyz(8.3946, 5.3622, 33.3868)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A339F #9F962A
analogous
#2A6D9F #2A339F #5C2A9F
triadic
#2A339F #9F2A33 #339F2A
tetradic
#2A339F #9F2A6D #9F962A #2A9F5C
square
#2A339F #9F2A6D #9F962A #2A9F5C
split-complementary
#2A339F #9F5C2A #6D9F2A
monochromatic
#10143E #1D236F #2A339F #3B46CB #6B74D8

Accessibility & contrast

On white

10.13
#2A339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A339F
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A339F#FFFFFF#000000##FFFFFF
##2A339F1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a339f;
/* rgb */ color: rgb(42, 51, 159);
/* oklch */ color: oklch(39.1% 0.172 271.8);
Tailwind
colors: {
  custom: {
    50: '#766bbc',
    500: '#2a339f',
    950: '#000000',
  },
}
SCSS
$custom: #2a339f;
$custom-light: #766bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a339f",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 235.385,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.391,
    "c": 0.17198,
    "h": 271.8
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

primary
#2A339F
secondary
#BFB866
accent
#D646E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A339F

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

Preview Lab → · Contrast checker → · Palette generator →

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