#2A389E#2A389E

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

Color values

HEX#2A389E
RGBrgb(42, 56, 158)
HSLhsl(233, 58%, 39%)
HSVhsv(233, 73%, 62%)
CMYKcmyk(73.4%, 64.6%, 0%, 38%)
CIE-LABlab(28.87, 30.52, -56.99)
CIE-LCHlch(28.87, 64.65, 298.17°)
OKLaboklab(39.9% 0.0022 -0.1647)
OKLCHoklch(39.9% 0.165 270.8)
XYZxyz(8.5385, 5.7883, 33.0084)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A389E #9E902A
analogous
#2A729E #2A389E #562A9E
triadic
#2A389E #9E2A38 #389E2A
tetradic
#2A389E #9E2A72 #9E902A #2A9E56
square
#2A389E #9E2A72 #9E902A #2A9E56
split-complementary
#2A389E #9E562A #729E2A
monochromatic
#10163D #1D276E #2A389E #3A4CCB #6B78D8

Accessibility & contrast

On white

9.73
#2A389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A389E
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A389E#FFFFFF#000000##FFFFFF
##2A389E1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a389e;
/* rgb */ color: rgb(42, 56, 158);
/* oklch */ color: oklch(39.9% 0.165 270.8);
Tailwind
colors: {
  custom: {
    50: '#756ebc',
    500: '#2a389e',
    950: '#000000',
  },
}
SCSS
$custom: #2a389e;
$custom-light: #756ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a389e",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 232.759,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39897,
    "c": 0.16467,
    "h": 270.8
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#2A389E
secondary
#BEB466
accent
#CF47E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A389E

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

Preview Lab → · Contrast checker → · Palette generator →

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