#2A377E#2A377E

#2A377E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.9% C 0.121 H 271.4°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2A377E
RGBrgb(42, 55, 126)
HSLhsl(231, 50%, 33%)
HSVhsv(231, 67%, 49%)
CMYKcmyk(66.7%, 56.3%, 0%, 50.6%)
CIE-LABlab(25.95, 19.20, -41.97)
CIE-LCHlch(25.95, 46.16, 294.58°)
OKLaboklab(36.9% 0.003 -0.1206)
OKLCHoklch(36.9% 0.121 271.4)
XYZxyz(6.0857, 4.7304, 20.3270)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A377E #7E712A
analogous
#2A617E #2A377E #472A7E
triadic
#2A377E #7E2A37 #377E2A
tetradic
#2A377E #7E2A61 #7E712A #2A7E47
square
#2A377E #7E2A61 #7E712A #2A7E47
split-complementary
#2A377E #7E472A #617E2A
monochromatic
#0B0F22 #1B2350 #2A377E #394BAC #5A6BC8

Accessibility & contrast

On white

10.79
#2A377E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A377E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A377E#FFFFFF#000000##FFFFFF
##2A377E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034180
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a377e;
/* rgb */ color: rgb(42, 55, 126);
/* oklch */ color: oklch(36.9% 0.121 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e6da4',
    500: '#2a377e',
    950: '#000000',
  },
}
SCSS
$custom: #2a377e;
$custom-light: #6e6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a377e",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 126
  },
  "hsl": {
    "h": 230.714,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.369,
    "c": 0.12061,
    "h": 271.4
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#2A377E
secondary
#AEA056
accent
#C44EDA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A377E

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

Preview Lab → · Contrast checker → · Palette generator →

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