#2A377D#2A377D

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

Color values

HEX#2A377D
RGBrgb(42, 55, 125)
HSLhsl(231, 50%, 33%)
HSVhsv(231, 66%, 49%)
CMYKcmyk(66.4%, 56%, 0%, 51%)
CIE-LABlab(25.88, 18.82, -41.47)
CIE-LCHlch(25.88, 45.54, 294.41°)
OKLaboklab(36.82% 0.0029 -0.1191)
OKLCHoklch(36.82% 0.119 271.4)
XYZxyz(6.0215, 4.7048, 19.9888)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A377D #7D702A
analogous
#2A617D #2A377D #462A7D
triadic
#2A377D #7D2A37 #377D2A
tetradic
#2A377D #7D2A61 #7D702A #2A7D46
square
#2A377D #7D2A61 #7D702A #2A7D46
split-complementary
#2A377D #7D462A #617D2A
monochromatic
#0B0F21 #1B234F #2A377D #394BAB #5A6BC8

Accessibility & contrast

On white

10.82
#2A377D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A377D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A377D
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A377D#FFFFFF#000000##FFFFFF
##2A377D1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417F
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a377d;
/* rgb */ color: rgb(42, 55, 125);
/* oklch */ color: oklch(36.8% 0.119 271.4);
Tailwind
colors: {
  custom: {
    50: '#6d6da3',
    500: '#2a377d',
    950: '#000000',
  },
}
SCSS
$custom: #2a377d;
$custom-light: #6d6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a377d",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 125
  },
  "hsl": {
    "h": 230.602,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36819,
    "c": 0.11912,
    "h": 271.4
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#2A377D
secondary
#AD9F56
accent
#C44FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A377D

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

Preview Lab → · Contrast checker → · Palette generator →

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