#2A399E#2A399E

#2A399E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.163 H 270.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2A399E
RGBrgb(42, 57, 158)
HSLhsl(232, 58%, 39%)
HSVhsv(232, 73%, 62%)
CMYKcmyk(73.4%, 63.9%, 0%, 38%)
CIE-LABlab(29.12, 29.86, -56.58)
CIE-LCHlch(29.12, 63.97, 297.83°)
OKLaboklab(40.08% 0.0015 -0.1635)
OKLCHoklch(40.08% 0.163 270.5)
XYZxyz(8.5874, 5.8862, 33.0247)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A399E #9E8F2A
analogous
#2A739E #2A399E #552A9E
triadic
#2A399E #9E2A39 #399E2A
tetradic
#2A399E #9E2A73 #9E8F2A #2A9E55
square
#2A399E #9E2A73 #9E8F2A #2A9E55
split-complementary
#2A399E #9E552A #739E2A
monochromatic
#10163D #1D286E #2A399E #3A4DCB #6B79D8

Accessibility & contrast

On white

9.64
#2A399E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A399E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A399E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A399E#FFFFFF#000000##FFFFFF
##2A399E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a399e;
/* rgb */ color: rgb(42, 57, 158);
/* oklch */ color: oklch(40.1% 0.163 270.5);
Tailwind
colors: {
  custom: {
    50: '#756fbc',
    500: '#2a399e',
    950: '#000000',
  },
}
SCSS
$custom: #2a399e;
$custom-light: #756fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a399e",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 232.241,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40082,
    "c": 0.16346,
    "h": 270.5
  },
  "luminance": 0.05887
}

Semantic roles & 50–950 ramp

primary
#2A399E
secondary
#BEB366
accent
#CD47E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A399E

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

Preview Lab → · Contrast checker → · Palette generator →

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