#2A3787#2A3787

#2A3787 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.134 H 271.4°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#2A3787
RGBrgb(42, 55, 135)
HSLhsl(232, 53%, 35%)
HSVhsv(232, 69%, 53%)
CMYKcmyk(68.9%, 59.3%, 0%, 47.1%)
CIE-LABlab(26.66, 22.60, -46.46)
CIE-LCHlch(26.66, 51.66, 295.94°)
OKLaboklab(37.65% 0.0034 -0.1338)
OKLCHoklch(37.65% 0.134 271.4)
XYZxyz(6.6927, 4.9733, 23.5242)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3787 #877A2A
analogous
#2A6687 #2A3787 #4C2A87
triadic
#2A3787 #872A37 #37872A
tetradic
#2A3787 #872A66 #877A2A #2A874C
square
#2A3787 #872A66 #877A2A #2A874C
split-complementary
#2A3787 #874C2A #66872A
monochromatic
#0D112A #1B2458 #2A3787 #394AB6 #5E6ECD

Accessibility & contrast

On white

10.53
#2A3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3787
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3787#FFFFFF#000000##FFFFFF
##2A37871.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3787;
/* rgb */ color: rgb(42, 55, 135);
/* oklch */ color: oklch(37.7% 0.134 271.4);
Tailwind
colors: {
  custom: {
    50: '#706dab',
    500: '#2a3787',
    950: '#000000',
  },
}
SCSS
$custom: #2a3787;
$custom-light: #706dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3787",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 231.613,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37651,
    "c": 0.13381,
    "h": 271.4
  },
  "luminance": 0.04974
}

Semantic roles & 50–950 ramp

primary
#2A3787
secondary
#B3A65A
accent
#C84CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3787

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

Preview Lab → · Contrast checker → · Palette generator →

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