#2A378C#2A378C

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

Color values

HEX#2A378C
RGBrgb(42, 55, 140)
HSLhsl(232, 54%, 36%)
HSVhsv(232, 70%, 55%)
CMYKcmyk(70%, 60.7%, 0%, 45.1%)
CIE-LABlab(27.07, 24.48, -48.90)
CIE-LCHlch(27.07, 54.69, 296.59°)
OKLaboklab(38.08% 0.0034 -0.1409)
OKLCHoklch(38.08% 0.141 271.4)
XYZxyz(7.0531, 5.1174, 25.4219)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A378C #8C7F2A
analogous
#2A688C #2A378C #4E2A8C
triadic
#2A378C #8C2A37 #378C2A
tetradic
#2A378C #8C2A68 #8C7F2A #2A8C4E
square
#2A378C #8C2A68 #8C7F2A #2A8C4E
split-complementary
#2A378C #8C4E2A #688C2A
monochromatic
#0E122E #1C255D #2A378C #3849BB #6170D0

Accessibility & contrast

On white

10.38
#2A378C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A378C
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A378C#FFFFFF#000000##FFFFFF
##2A378C1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a378c;
/* rgb */ color: rgb(42, 55, 140);
/* oklch */ color: oklch(38.1% 0.141 271.4);
Tailwind
colors: {
  custom: {
    50: '#716dae',
    500: '#2a378c',
    950: '#000000',
  },
}
SCSS
$custom: #2a378c;
$custom-light: #716dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a378c",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 140
  },
  "hsl": {
    "h": 232.041,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38083,
    "c": 0.14098,
    "h": 271.4
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

primary
#2A378C
secondary
#B5AA5C
accent
#CA4BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2A378C

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

Preview Lab → · Contrast checker → · Palette generator →

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