#2A377B#2A377B

#2A377B is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.7% C 0.116 H 271.4°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2A377B
RGBrgb(42, 55, 123)
HSLhsl(230, 49%, 32%)
HSVhsv(230, 66%, 48%)
CMYKcmyk(65.9%, 55.3%, 0%, 51.8%)
CIE-LABlab(25.73, 18.06, -40.45)
CIE-LCHlch(25.73, 44.30, 294.07°)
OKLaboklab(36.66% 0.0028 -0.1161)
OKLCHoklch(36.66% 0.116 271.4)
XYZxyz(5.8950, 4.6542, 19.3227)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A377B #7B6E2A
analogous
#2A607B #2A377B #452A7B
triadic
#2A377B #7B2A37 #377B2A
tetradic
#2A377B #7B2A60 #7B6E2A #2A7B45
square
#2A377B #7B2A60 #7B6E2A #2A7B45
split-complementary
#2A377B #7B452A #607B2A
monochromatic
#0B0E20 #1A234D #2A377B #3A4BA9 #596BC6

Accessibility & contrast

On white

10.88
#2A377B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A377B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A377B
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A377B#FFFFFF#000000##FFFFFF
##2A377B1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A417D
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#004753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a377b;
/* rgb */ color: rgb(42, 55, 123);
/* oklch */ color: oklch(36.7% 0.116 271.4);
Tailwind
colors: {
  custom: {
    50: '#6d6da2',
    500: '#2a377b',
    950: '#000000',
  },
}
SCSS
$custom: #2a377b;
$custom-light: #6d6da2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a377b",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 123
  },
  "hsl": {
    "h": 230.37,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36657,
    "c": 0.11612,
    "h": 271.4
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#2A377B
secondary
#AC9E55
accent
#C34FD9
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A377B

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

Preview Lab → · Contrast checker → · Palette generator →

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