#2A3189#2A3189

#2A3189 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.145 H 273.4°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2A3189
RGBrgb(42, 49, 137)
HSLhsl(236, 53%, 35%)
HSVhsv(236, 69%, 54%)
CMYKcmyk(69.3%, 64.2%, 0%, 46.3%)
CIE-LABlab(25.24, 27.40, -50.01)
CIE-LCHlch(25.24, 57.03, 298.72°)
OKLaboklab(36.66% 0.0085 -0.1443)
OKLCHoklch(36.66% 0.145 273.4)
XYZxyz(6.5670, 4.4944, 24.1835)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3189 #89822A
analogous
#2A6089 #2A3189 #522A89
triadic
#2A3189 #892A31 #31892A
tetradic
#2A3189 #892A60 #89822A #2A8952
square
#2A3189 #892A60 #89822A #2A8952
split-complementary
#2A3189 #89522A #60892A
monochromatic
#0D0F2B #1C205A #2A3189 #3842B8 #5F68CE

Accessibility & contrast

On white

11.06
#2A3189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A3189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3189
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3189#FFFFFF#000000##FFFFFF
##2A31891.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3189;
/* rgb */ color: rgb(42, 49, 137);
/* oklch */ color: oklch(36.7% 0.145 273.4);
Tailwind
colors: {
  custom: {
    50: '#7169ac',
    500: '#2a3189',
    950: '#000000',
  },
}
SCSS
$custom: #2a3189;
$custom-light: #7169ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3189",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 137
  },
  "hsl": {
    "h": 235.579,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36655,
    "c": 0.14451,
    "h": 273.4
  },
  "luminance": 0.04495
}

Semantic roles & 50–950 ramp

primary
#2A3189
secondary
#B4AD5B
accent
#D24BDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3189

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

Preview Lab → · Contrast checker → · Palette generator →

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