#2A377A#2A377A

#2A377A is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.6% C 0.115 H 271.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2A377A
RGBrgb(42, 55, 122)
HSLhsl(230, 49%, 32%)
HSVhsv(230, 66%, 48%)
CMYKcmyk(65.6%, 54.9%, 0%, 52.2%)
CIE-LABlab(25.65, 17.69, -39.94)
CIE-LCHlch(25.65, 43.68, 293.89°)
OKLaboklab(36.58% 0.0027 -0.1146)
OKLCHoklch(36.58% 0.115 271.4)
XYZxyz(5.8327, 4.6293, 18.9947)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A377A #7A6D2A
analogous
#2A5F7A #2A377A #452A7A
triadic
#2A377A #7A2A37 #377A2A
tetradic
#2A377A #7A2A5F #7A6D2A #2A7A45
square
#2A377A #7A2A5F #7A6D2A #2A7A45
split-complementary
#2A377A #7A452A #5F7A2A
monochromatic
#0B0E1F #1A224C #2A377A #3A4CA8 #596AC6

Accessibility & contrast

On white

10.90
#2A377A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A377A
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A377A#FFFFFF#000000##FFFFFF
##2A377A1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D407C
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#004753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a377a;
/* rgb */ color: rgb(42, 55, 122);
/* oklch */ color: oklch(36.6% 0.115 271.4);
Tailwind
colors: {
  custom: {
    50: '#6d6da1',
    500: '#2a377a',
    950: '#000000',
  },
}
SCSS
$custom: #2a377a;
$custom-light: #6d6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a377a",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 122
  },
  "hsl": {
    "h": 230.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36578,
    "c": 0.11461,
    "h": 271.4
  },
  "luminance": 0.0463
}

Semantic roles & 50–950 ramp

primary
#2A377A
secondary
#AB9D55
accent
#C24FD8
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A377A

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

Preview Lab → · Contrast checker → · Palette generator →

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