#2A399C#2A399C

#2A399C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.161 H 270.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2A399C
RGBrgb(42, 57, 156)
HSLhsl(232, 58%, 39%)
HSVhsv(232, 73%, 61%)
CMYKcmyk(73.1%, 63.5%, 0%, 38.8%)
CIE-LABlab(28.95, 29.12, -55.65)
CIE-LCHlch(28.95, 62.81, 297.62°)
OKLaboklab(39.9% 0.0015 -0.1607)
OKLCHoklch(39.9% 0.161 270.5)
XYZxyz(8.4167, 5.8179, 32.1254)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A399C #9C8D2A
analogous
#2A729C #2A399C #542A9C
triadic
#2A399C #9C2A39 #399C2A
tetradic
#2A399C #9C2A72 #9C8D2A #2A9C54
square
#2A399C #9C2A72 #9C8D2A #2A9C54
split-complementary
#2A399C #9C542A #729C2A
monochromatic
#10163C #1D276C #2A399C #394CCA #6A78D7

Accessibility & contrast

On white

9.71
#2A399C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A399C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A399C
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A399C#FFFFFF#000000##FFFFFF
##2A399C1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a399c;
/* rgb */ color: rgb(42, 57, 156);
/* oklch */ color: oklch(39.9% 0.161 270.5);
Tailwind
colors: {
  custom: {
    50: '#746fba',
    500: '#2a399c',
    950: '#000000',
  },
}
SCSS
$custom: #2a399c;
$custom-light: #746fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a399c",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 156
  },
  "hsl": {
    "h": 232.105,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39899,
    "c": 0.16073,
    "h": 270.5
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#2A399C
secondary
#BDB265
accent
#CD47E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #2A399C

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

Preview Lab → · Contrast checker → · Palette generator →

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