#2A3785#2A3785

#2A3785 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.131 H 271.4°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2A3785
RGBrgb(42, 55, 133)
HSLhsl(231, 52%, 34%)
HSVhsv(231, 68%, 52%)
CMYKcmyk(68.4%, 58.6%, 0%, 47.8%)
CIE-LABlab(26.50, 21.84, -45.47)
CIE-LCHlch(26.50, 50.45, 295.66°)
OKLaboklab(37.48% 0.0033 -0.1309)
OKLCHoklch(37.48% 0.131 271.4)
XYZxyz(6.5532, 4.9175, 22.7896)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3785 #85782A
analogous
#2A6585 #2A3785 #4B2A85
triadic
#2A3785 #852A37 #37852A
tetradic
#2A3785 #852A65 #85782A #2A854B
square
#2A3785 #852A65 #85782A #2A854B
split-complementary
#2A3785 #854B2A #65852A
monochromatic
#0D1128 #1B2456 #2A3785 #394AB4 #5D6DCC

Accessibility & contrast

On white

10.59
#2A3785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A3785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3785
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3785#FFFFFF#000000##FFFFFF
##2A37851.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#003B83
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3785;
/* rgb */ color: rgb(42, 55, 133);
/* oklch */ color: oklch(37.5% 0.131 271.4);
Tailwind
colors: {
  custom: {
    50: '#6f6da9',
    500: '#2a3785',
    950: '#000000',
  },
}
SCSS
$custom: #2a3785;
$custom-light: #6f6da9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3785",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 133
  },
  "hsl": {
    "h": 231.429,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37481,
    "c": 0.13091,
    "h": 271.4
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#2A3785
secondary
#B2A559
accent
#C74CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3785

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

Preview Lab → · Contrast checker → · Palette generator →

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