#2A3F76#2A3F76

#2A3F76 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.097 H 266.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2A3F76
RGBrgb(42, 63, 118)
HSLhsl(223, 48%, 31%)
HSVhsv(223, 64%, 46%)
CMYKcmyk(64.4%, 46.6%, 0%, 53.7%)
CIE-LABlab(27.72, 10.64, -34.08)
CIE-LCHlch(27.72, 35.71, 287.34°)
OKLaboklab(38.06% -0.0065 -0.0972)
OKLCHoklch(38.06% 0.097 266.2)
XYZxyz(6.0012, 5.3547, 17.8533)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F76 #76612A
analogous
#2A6576 #2A3F76 #3B2A76
triadic
#2A3F76 #762A3F #3F762A
tetradic
#2A3F76 #762A65 #76612A #2A763B
square
#2A3F76 #762A65 #76612A #2A763B
split-complementary
#2A3F76 #763B2A #65762A
monochromatic
#0A0F1C #1A2749 #2A3F76 #3A57A3 #5775C3

Accessibility & contrast

On white

10.14
#2A3F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A3F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F76
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F76#FFFFFF#000000##FFFFFF
##2A3F761.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254578
Deuteranopia (green-blind)
#193E75
Tritanopia (blue-blind)
#004B54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3f76;
/* rgb */ color: rgb(42, 63, 118);
/* oklch */ color: oklch(38.1% 0.097 266.2);
Tailwind
colors: {
  custom: {
    50: '#6b739e',
    500: '#2a3f76',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f76;
$custom-light: #6b739e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f76",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 118
  },
  "hsl": {
    "h": 223.421,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38063,
    "c": 0.09747,
    "h": 266.2
  },
  "luminance": 0.05355
}

Semantic roles & 50–950 ramp

primary
#2A3F76
secondary
#A89154
accent
#B251D7
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2A3F76

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

Preview Lab → · Contrast checker → · Palette generator →

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