#2A3E89#2A3E89

#2A3E89 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.127 H 268.7°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2A3E89
RGBrgb(42, 62, 137)
HSLhsl(227, 53%, 35%)
HSVhsv(227, 69%, 54%)
CMYKcmyk(69.3%, 54.7%, 0%, 46.3%)
CIE-LABlab(28.75, 18.57, -44.30)
CIE-LCHlch(28.75, 48.04, 292.74°)
OKLaboklab(39.27% -0.003 -0.1273)
OKLCHoklch(39.27% 0.127 268.7)
XYZxyz(7.1913, 5.7429, 24.3916)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E89 #89752A
analogous
#2A6E89 #2A3E89 #452A89
triadic
#2A3E89 #892A3E #3E892A
tetradic
#2A3E89 #892A6E #89752A #2A8945
square
#2A3E89 #892A6E #89752A #2A8945
split-complementary
#2A3E89 #89452A #6E892A
monochromatic
#0D142B #1C295A #2A3E89 #3853B8 #5F77CE

Accessibility & contrast

On white

9.77
#2A3E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A3E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E89
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E89#FFFFFF#000000##FFFFFF
##2A3E891.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A488C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3e89;
/* rgb */ color: rgb(42, 62, 137);
/* oklch */ color: oklch(39.3% 0.127 268.7);
Tailwind
colors: {
  custom: {
    50: '#7072ac',
    500: '#2a3e89',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e89;
$custom-light: #7072ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e89",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 137
  },
  "hsl": {
    "h": 227.368,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39272,
    "c": 0.12737,
    "h": 268.7
  },
  "luminance": 0.05744
}

Semantic roles & 50–950 ramp

primary
#2A3E89
secondary
#B4A15B
accent
#BE4BDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3E89

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

Preview Lab → · Contrast checker → · Palette generator →

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