#2A3185#2A3185

#2A3185 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.139 H 273.6°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2A3185
RGBrgb(42, 49, 133)
HSLhsl(235, 52%, 34%)
HSVhsv(235, 68%, 52%)
CMYKcmyk(68.4%, 63.2%, 0%, 47.8%)
CIE-LABlab(24.90, 25.92, -48.08)
CIE-LCHlch(24.90, 54.62, 298.33°)
OKLaboklab(36.29% 0.0087 -0.1386)
OKLCHoklch(36.29% 0.139 273.6)
XYZxyz(6.2854, 4.3818, 22.7003)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3185 #857E2A
analogous
#2A5F85 #2A3185 #512A85
triadic
#2A3185 #852A31 #31852A
tetradic
#2A3185 #852A5F #857E2A #2A8551
square
#2A3185 #852A5F #857E2A #2A8551
split-complementary
#2A3185 #85512A #5F852A
monochromatic
#0D0F28 #1B2056 #2A3185 #3942B4 #5D66CC

Accessibility & contrast

On white

11.19
#2A3185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A3185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3185
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3185#FFFFFF#000000##FFFFFF
##2A31851.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3185;
/* rgb */ color: rgb(42, 49, 133);
/* oklch */ color: oklch(36.3% 0.139 273.6);
Tailwind
colors: {
  custom: {
    50: '#7069a9',
    500: '#2a3185',
    950: '#000000',
  },
}
SCSS
$custom: #2a3185;
$custom-light: #7069a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3185",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 133
  },
  "hsl": {
    "h": 235.385,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36292,
    "c": 0.13887,
    "h": 273.6
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

primary
#2A3185
secondary
#B2AB59
accent
#D04CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A3185

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

Preview Lab → · Contrast checker → · Palette generator →

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