#2A378F#2A378F

#2A378F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.145 H 271.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2A378F
RGBrgb(42, 55, 143)
HSLhsl(232, 55%, 36%)
HSVhsv(232, 71%, 56%)
CMYKcmyk(70.6%, 61.5%, 0%, 43.9%)
CIE-LABlab(27.32, 25.60, -50.35)
CIE-LCHlch(27.32, 56.48, 296.96°)
OKLaboklab(38.35% 0.0034 -0.1452)
OKLCHoklch(38.35% 0.145 271.3)
XYZxyz(7.2773, 5.2071, 26.6028)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A378F #8F822A
analogous
#2A6A8F #2A378F #502A8F
triadic
#2A378F #8F2A37 #378F2A
tetradic
#2A378F #8F2A6A #8F822A #2A8F50
square
#2A378F #8F2A6A #8F822A #2A8F50
split-complementary
#2A378F #8F502A #6A8F2A
monochromatic
#0E1330 #1C2560 #2A378F #3849BE #6271D1

Accessibility & contrast

On white

10.29
#2A378F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A378F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A378F
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A378F#FFFFFF#000000##FFFFFF
##2A378F1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a378f;
/* rgb */ color: rgb(42, 55, 143);
/* oklch */ color: oklch(38.3% 0.145 271.3);
Tailwind
colors: {
  custom: {
    50: '#716db1',
    500: '#2a378f',
    950: '#000000',
  },
}
SCSS
$custom: #2a378f;
$custom-light: #716db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a378f",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 143
  },
  "hsl": {
    "h": 232.277,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38347,
    "c": 0.14523,
    "h": 271.3
  },
  "luminance": 0.05208
}

Semantic roles & 50–950 ramp

primary
#2A378F
secondary
#B7AB5E
accent
#CB4ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A378F

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

Preview Lab → · Contrast checker → · Palette generator →

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