#2A3899#2A3899

#2A3899 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.158 H 270.9°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2A3899
RGBrgb(42, 56, 153)
HSLhsl(232, 57%, 38%)
HSVhsv(232, 73%, 60%)
CMYKcmyk(72.5%, 63.4%, 0%, 40%)
CIE-LABlab(28.43, 28.67, -54.66)
CIE-LCHlch(28.43, 61.73, 297.67°)
OKLaboklab(39.44% 0.0024 -0.1578)
OKLCHoklch(39.44% 0.158 270.9)
XYZxyz(8.1168, 5.6197, 30.7878)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3899 #998B2A
analogous
#2A6F99 #2A3899 #532A99
triadic
#2A3899 #992A38 #38992A
tetradic
#2A3899 #992A6F #998B2A #2A9953
square
#2A3899 #992A6F #998B2A #2A9953
split-complementary
#2A3899 #99532A #6F992A
monochromatic
#101539 #1D2669 #2A3899 #384AC8 #6876D6

Accessibility & contrast

On white

9.89
#2A3899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A3899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3899
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3899#FFFFFF#000000##FFFFFF
##2A38991.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3899;
/* rgb */ color: rgb(42, 56, 153);
/* oklch */ color: oklch(39.4% 0.158 270.9);
Tailwind
colors: {
  custom: {
    50: '#746eb8',
    500: '#2a3899',
    950: '#000000',
  },
}
SCSS
$custom: #2a3899;
$custom-light: #746eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3899",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 232.432,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39437,
    "c": 0.15787,
    "h": 270.9
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3899

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

Preview Lab → · Contrast checker → · Palette generator →

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