#2A378B#2A378B

#2A378B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.140 H 271.4°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2A378B
RGBrgb(42, 55, 139)
HSLhsl(232, 54%, 35%)
HSVhsv(232, 70%, 55%)
CMYKcmyk(69.8%, 60.4%, 0%, 45.5%)
CIE-LABlab(26.98, 24.10, -48.42)
CIE-LCHlch(26.98, 54.08, 296.47°)
OKLaboklab(38% 0.0034 -0.1395)
OKLCHoklch(38% 0.14 271.4)
XYZxyz(6.9797, 5.0880, 25.0354)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A378B #8B7E2A
analogous
#2A678B #2A378B #4D2A8B
triadic
#2A378B #8B2A37 #378B2A
tetradic
#2A378B #8B2A67 #8B7E2A #2A8B4D
square
#2A378B #8B2A67 #8B7E2A #2A8B4D
split-complementary
#2A378B #8B4D2A #678B2A
monochromatic
#0E122D #1C245C #2A378B #384ABA #606FCF

Accessibility & contrast

On white

10.41
#2A378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A378B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A378B#FFFFFF#000000##FFFFFF
##2A378B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a378b;
/* rgb */ color: rgb(42, 55, 139);
/* oklch */ color: oklch(38.0% 0.140 271.4);
Tailwind
colors: {
  custom: {
    50: '#706dae',
    500: '#2a378b',
    950: '#000000',
  },
}
SCSS
$custom: #2a378b;
$custom-light: #706dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a378b",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 231.959,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37996,
    "c": 0.13955,
    "h": 271.4
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#2A378B
secondary
#B5A95C
accent
#C94BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A378B

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

Preview Lab → · Contrast checker → · Palette generator →

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