#2A389D#2A389D

#2A389D is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.163 H 270.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2A389D
RGBrgb(42, 56, 157)
HSLhsl(233, 58%, 39%)
HSVhsv(233, 73%, 62%)
CMYKcmyk(73.2%, 64.3%, 0%, 38.4%)
CIE-LABlab(28.78, 30.15, -56.53)
CIE-LCHlch(28.78, 64.06, 298.07°)
OKLaboklab(39.8% 0.0022 -0.1633)
OKLCHoklch(39.8% 0.163 270.8)
XYZxyz(8.4528, 5.7540, 32.5569)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A389D #9D8F2A
analogous
#2A729D #2A389D #562A9D
triadic
#2A389D #9D2A38 #389D2A
tetradic
#2A389D #9D2A72 #9D8F2A #2A9D56
square
#2A389D #9D2A72 #9D8F2A #2A9D56
split-complementary
#2A389D #9D562A #729D2A
monochromatic
#10163C #1D276D #2A389D #3A4BCA #6A77D7

Accessibility & contrast

On white

9.76
#2A389D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A389D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A389D
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A389D#FFFFFF#000000##FFFFFF
##2A389D1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a389d;
/* rgb */ color: rgb(42, 56, 157);
/* oklch */ color: oklch(39.8% 0.163 270.8);
Tailwind
colors: {
  custom: {
    50: '#756ebb',
    500: '#2a389d',
    950: '#000000',
  },
}
SCSS
$custom: #2a389d;
$custom-light: #756ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a389d",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 157
  },
  "hsl": {
    "h": 232.696,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39804,
    "c": 0.16332,
    "h": 270.8
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

primary
#2A389D
secondary
#BEB365
accent
#CE47E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #2A389D

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

Preview Lab → · Contrast checker → · Palette generator →

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