#2A389F#2A389F

#2A389F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.166 H 270.7°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2A389F
RGBrgb(42, 56, 159)
HSLhsl(233, 58%, 39%)
HSVhsv(233, 74%, 62%)
CMYKcmyk(73.6%, 64.8%, 0%, 37.6%)
CIE-LABlab(28.96, 30.89, -57.45)
CIE-LCHlch(28.96, 65.23, 298.26°)
OKLaboklab(39.99% 0.0021 -0.166)
OKLCHoklch(39.99% 0.166 270.7)
XYZxyz(8.6249, 5.8229, 33.4636)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A389F #9F912A
analogous
#2A729F #2A389F #572A9F
triadic
#2A389F #9F2A38 #389F2A
tetradic
#2A389F #9F2A72 #9F912A #2A9F57
square
#2A389F #9F2A72 #9F912A #2A9F57
split-complementary
#2A389F #9F572A #729F2A
monochromatic
#10163E #1D276F #2A389F #3B4CCB #6B78D8

Accessibility & contrast

On white

9.70
#2A389F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A389F
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A389F#FFFFFF#000000##FFFFFF
##2A389F1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a389f;
/* rgb */ color: rgb(42, 56, 159);
/* oklch */ color: oklch(40.0% 0.166 270.7);
Tailwind
colors: {
  custom: {
    50: '#756ebc',
    500: '#2a389f',
    950: '#000000',
  },
}
SCSS
$custom: #2a389f;
$custom-light: #756ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a389f",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 159
  },
  "hsl": {
    "h": 232.821,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3999,
    "c": 0.16602,
    "h": 270.7
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#2A389F
secondary
#BFB466
accent
#CF46E1
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A389F

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

Preview Lab → · Contrast checker → · Palette generator →

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