#2A3D89#2A3D89

#2A3D89 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.129 H 269.1°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2A3D89
RGBrgb(42, 61, 137)
HSLhsl(228, 53%, 35%)
HSVhsv(228, 69%, 54%)
CMYKcmyk(69.3%, 55.5%, 0%, 46.3%)
CIE-LABlab(28.47, 19.25, -44.76)
CIE-LCHlch(28.47, 48.72, 293.27°)
OKLaboklab(39.06% -0.0021 -0.1287)
OKLCHoklch(39.06% 0.129 269.1)
XYZxyz(7.1374, 5.6352, 24.3736)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D89 #89762A
analogous
#2A6D89 #2A3D89 #462A89
triadic
#2A3D89 #892A3D #3D892A
tetradic
#2A3D89 #892A6D #89762A #2A8946
square
#2A3D89 #892A6D #89762A #2A8946
split-complementary
#2A3D89 #89462A #6D892A
monochromatic
#0D132B #1C285A #2A3D89 #3852B8 #5F75CE

Accessibility & contrast

On white

9.87
#2A3D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3D89
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D89#FFFFFF#000000##FFFFFF
##2A3D891.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05488C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3d89;
/* rgb */ color: rgb(42, 61, 137);
/* oklch */ color: oklch(39.1% 0.129 269.1);
Tailwind
colors: {
  custom: {
    50: '#7072ac',
    500: '#2a3d89',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d89;
$custom-light: #7072ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d89",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 137
  },
  "hsl": {
    "h": 228,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3906,
    "c": 0.1287,
    "h": 269.1
  },
  "luminance": 0.05636
}

Semantic roles & 50–950 ramp

primary
#2A3D89
secondary
#B4A25B
accent
#BF4BDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3D89

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

Preview Lab → · Contrast checker → · Palette generator →

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