#2A377F#2A377F

#2A377F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.0% C 0.122 H 271.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2A377F
RGBrgb(42, 55, 127)
HSLhsl(231, 50%, 33%)
HSVhsv(231, 67%, 50%)
CMYKcmyk(66.9%, 56.7%, 0%, 50.2%)
CIE-LABlab(26.03, 19.58, -42.48)
CIE-LCHlch(26.03, 46.77, 294.74°)
OKLaboklab(36.98% 0.0031 -0.122)
OKLCHoklch(36.98% 0.122 271.4)
XYZxyz(6.1505, 4.7564, 20.6685)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A377F #7F722A
analogous
#2A617F #2A377F #482A7F
triadic
#2A377F #7F2A37 #377F2A
tetradic
#2A377F #7F2A61 #7F722A #2A7F48
square
#2A377F #7F2A61 #7F722A #2A7F48
split-complementary
#2A377F #7F482A #617F2A
monochromatic
#0C0F23 #1B2351 #2A377F #394BAD #5B6CC9

Accessibility & contrast

On white

10.76
#2A377F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A377F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A377F
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A377F#FFFFFF#000000##FFFFFF
##2A377F1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014281
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a377f;
/* rgb */ color: rgb(42, 55, 127);
/* oklch */ color: oklch(37.0% 0.122 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e6da5',
    500: '#2a377f',
    950: '#000000',
  },
}
SCSS
$custom: #2a377f;
$custom-light: #6e6da5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a377f",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 127
  },
  "hsl": {
    "h": 230.824,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36982,
    "c": 0.12209,
    "h": 271.4
  },
  "luminance": 0.04757
}

Semantic roles & 50–950 ramp

primary
#2A377F
secondary
#AEA157
accent
#C44EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2A377F

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

Preview Lab → · Contrast checker → · Palette generator →

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