#2A389C#2A389C

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

Color values

HEX#2A389C
RGBrgb(42, 56, 156)
HSLhsl(233, 58%, 39%)
HSVhsv(233, 73%, 61%)
CMYKcmyk(73.1%, 64.1%, 0%, 38.8%)
CIE-LABlab(28.69, 29.78, -56.06)
CIE-LCHlch(28.69, 63.48, 297.98°)
OKLaboklab(39.71% 0.0023 -0.1619)
OKLCHoklch(39.71% 0.162 270.8)
XYZxyz(8.3677, 5.7200, 32.1091)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A389C #9C8E2A
analogous
#2A719C #2A389C #552A9C
triadic
#2A389C #9C2A38 #389C2A
tetradic
#2A389C #9C2A71 #9C8E2A #2A9C55
square
#2A389C #9C2A71 #9C8E2A #2A9C55
split-complementary
#2A389C #9C552A #719C2A
monochromatic
#10153C #1D276C #2A389C #394BCA #6A77D7

Accessibility & contrast

On white

9.79
#2A389C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A389C
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A389C#FFFFFF#000000##FFFFFF
##2A389C1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a389c;
/* rgb */ color: rgb(42, 56, 156);
/* oklch */ color: oklch(39.7% 0.162 270.8);
Tailwind
colors: {
  custom: {
    50: '#746eba',
    500: '#2a389c',
    950: '#000000',
  },
}
SCSS
$custom: #2a389c;
$custom-light: #746eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a389c",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 156
  },
  "hsl": {
    "h": 232.632,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39712,
    "c": 0.16197,
    "h": 270.8
  },
  "luminance": 0.05721
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A389C

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

Preview Lab → · Contrast checker → · Palette generator →

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