#2A389B#2A389B

#2A389B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.161 H 270.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2A389B
RGBrgb(42, 56, 155)
HSLhsl(233, 57%, 39%)
HSVhsv(233, 73%, 61%)
CMYKcmyk(72.9%, 63.9%, 0%, 39.2%)
CIE-LABlab(28.61, 29.41, -55.60)
CIE-LCHlch(28.61, 62.90, 297.88°)
OKLaboklab(39.62% 0.0023 -0.1606)
OKLCHoklch(39.62% 0.161 270.8)
XYZxyz(8.2834, 5.6863, 31.6650)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A389B #9B8D2A
analogous
#2A709B #2A389B #542A9B
triadic
#2A389B #9B2A38 #389B2A
tetradic
#2A389B #9B2A70 #9B8D2A #2A9B54
square
#2A389B #9B2A70 #9B8D2A #2A9B54
split-complementary
#2A389B #9B542A #709B2A
monochromatic
#10153B #1D276B #2A389B #394BC9 #6977D6

Accessibility & contrast

On white

9.83
#2A389B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A389B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A389B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A389B#FFFFFF#000000##FFFFFF
##2A389B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a389b;
/* rgb */ color: rgb(42, 56, 155);
/* oklch */ color: oklch(39.6% 0.161 270.8);
Tailwind
colors: {
  custom: {
    50: '#746eb9',
    500: '#2a389b',
    950: '#000000',
  },
}
SCSS
$custom: #2a389b;
$custom-light: #746eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a389b",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 155
  },
  "hsl": {
    "h": 232.566,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3962,
    "c": 0.1606,
    "h": 270.8
  },
  "luminance": 0.05687
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A389B

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

Preview Lab → · Contrast checker → · Palette generator →

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