#2A3F71#2A3F71

#2A3F71 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.7% C 0.090 H 265.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2A3F71
RGBrgb(42, 63, 113)
HSLhsl(222, 46%, 30%)
HSVhsv(222, 63%, 44%)
CMYKcmyk(62.8%, 44.2%, 0%, 55.7%)
CIE-LABlab(27.41, 8.76, -31.42)
CIE-LCHlch(27.41, 32.62, 285.57°)
OKLaboklab(37.72% -0.0075 -0.0894)
OKLCHoklch(37.72% 0.09 265.2)
XYZxyz(5.7120, 5.2390, 16.3298)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F71 #715C2A
analogous
#2A6271 #2A3F71 #392A71
triadic
#2A3F71 #712A3F #3F712A
tetradic
#2A3F71 #712A62 #715C2A #2A7139
square
#2A3F71 #712A62 #715C2A #2A7139
split-complementary
#2A3F71 #71392A #62712A
monochromatic
#090D18 #192644 #2A3F71 #3B589E #5575C0

Accessibility & contrast

On white

10.25
#2A3F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A3F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F71
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F71#FFFFFF#000000##FFFFFF
##2A3F711.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294473
Deuteranopia (green-blind)
#1F3E70
Tritanopia (blue-blind)
#004A52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3f71;
/* rgb */ color: rgb(42, 63, 113);
/* oklch */ color: oklch(37.7% 0.090 265.2);
Tailwind
colors: {
  custom: {
    50: '#6b739a',
    500: '#2a3f71',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f71;
$custom-light: #6b739a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f71",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 113
  },
  "hsl": {
    "h": 222.254,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37717,
    "c": 0.08975,
    "h": 265.2
  },
  "luminance": 0.0524
}

Semantic roles & 50–950 ramp

primary
#2A3F71
secondary
#A38C54
accent
#AF52D5
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2A3F71

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

Preview Lab → · Contrast checker → · Palette generator →

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