#2A399F#2A399F

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

Color values

HEX#2A399F
RGBrgb(42, 57, 159)
HSLhsl(232, 58%, 39%)
HSVhsv(232, 74%, 62%)
CMYKcmyk(73.6%, 64.2%, 0%, 37.6%)
CIE-LABlab(29.21, 30.23, -57.04)
CIE-LCHlch(29.21, 64.56, 297.92°)
OKLaboklab(40.17% 0.0014 -0.1648)
OKLCHoklch(40.17% 0.165 270.5)
XYZxyz(8.6738, 5.9208, 33.4799)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A399F #9F902A
analogous
#2A749F #2A399F #562A9F
triadic
#2A399F #9F2A39 #399F2A
tetradic
#2A399F #9F2A74 #9F902A #2A9F56
square
#2A399F #9F2A74 #9F902A #2A9F56
split-complementary
#2A399F #9F562A #749F2A
monochromatic
#10163E #1D286F #2A399F #3B4DCB #6B79D8

Accessibility & contrast

On white

9.61
#2A399F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A399F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A399F#FFFFFF#000000##FFFFFF
##2A399F1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a399f;
/* rgb */ color: rgb(42, 57, 159);
/* oklch */ color: oklch(40.2% 0.165 270.5);
Tailwind
colors: {
  custom: {
    50: '#756fbc',
    500: '#2a399f',
    950: '#000000',
  },
}
SCSS
$custom: #2a399f;
$custom-light: #756fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a399f",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 232.308,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40174,
    "c": 0.16481,
    "h": 270.5
  },
  "luminance": 0.05922
}

Semantic roles & 50–950 ramp

primary
#2A399F
secondary
#BFB366
accent
#CE46E1
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A399F

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

Preview Lab → · Contrast checker → · Palette generator →

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