#2A389A#2A389A

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

Color values

HEX#2A389A
RGBrgb(42, 56, 154)
HSLhsl(233, 57%, 38%)
HSVhsv(233, 73%, 60%)
CMYKcmyk(72.7%, 63.6%, 0%, 39.6%)
CIE-LABlab(28.52, 29.04, -55.13)
CIE-LCHlch(28.52, 62.31, 297.78°)
OKLaboklab(39.53% 0.0023 -0.1592)
OKLCHoklch(39.53% 0.159 270.8)
XYZxyz(8.1998, 5.6529, 31.2246)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A389A #9A8C2A
analogous
#2A709A #2A389A #542A9A
triadic
#2A389A #9A2A38 #389A2A
tetradic
#2A389A #9A2A70 #9A8C2A #2A9A54
square
#2A389A #9A2A70 #9A8C2A #2A9A54
split-complementary
#2A389A #9A542A #709A2A
monochromatic
#10153A #1D276A #2A389A #384AC9 #6876D6

Accessibility & contrast

On white

9.86
#2A389A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A389A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A389A
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A389A#FFFFFF#000000##FFFFFF
##2A389A1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#003E98
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a389a;
/* rgb */ color: rgb(42, 56, 154);
/* oklch */ color: oklch(39.5% 0.159 270.8);
Tailwind
colors: {
  custom: {
    50: '#746eb9',
    500: '#2a389a',
    950: '#000000',
  },
}
SCSS
$custom: #2a389a;
$custom-light: #746eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a389a",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 154
  },
  "hsl": {
    "h": 232.5,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39528,
    "c": 0.15924,
    "h": 270.8
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#2A389A
secondary
#BCB163
accent
#CD47E0
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A389A

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

Preview Lab → · Contrast checker → · Palette generator →

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