#2A397A#2A397A

#2A397A is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.0% C 0.112 H 270.3°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#2A397A
RGBrgb(42, 57, 122)
HSLhsl(229, 49%, 32%)
HSVhsv(229, 66%, 48%)
CMYKcmyk(65.6%, 53.3%, 0%, 52.2%)
CIE-LABlab(26.22, 16.30, -39.01)
CIE-LCHlch(26.22, 42.28, 292.68°)
OKLaboklab(37.01% 0.0006 -0.1118)
OKLCHoklch(37.01% 0.112 270.3)
XYZxyz(5.9296, 4.8231, 19.0271)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A397A #7A6B2A
analogous
#2A617A #2A397A #432A7A
triadic
#2A397A #7A2A39 #397A2A
tetradic
#2A397A #7A2A61 #7A6B2A #2A7A43
square
#2A397A #7A2A61 #7A6B2A #2A7A43
split-complementary
#2A397A #7A432A #617A2A
monochromatic
#0B0E1F #1A244C #2A397A #3A4EA8 #596DC6

Accessibility & contrast

On white

10.69
#2A397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A397A
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A397A#FFFFFF#000000##FFFFFF
##2A397A1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427C
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a397a;
/* rgb */ color: rgb(42, 57, 122);
/* oklch */ color: oklch(37.0% 0.112 270.3);
Tailwind
colors: {
  custom: {
    50: '#6d6fa1',
    500: '#2a397a',
    950: '#000000',
  },
}
SCSS
$custom: #2a397a;
$custom-light: #6d6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a397a",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 228.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3701,
    "c": 0.11183,
    "h": 270.3
  },
  "luminance": 0.04824
}

Semantic roles & 50–950 ramp

primary
#2A397A
secondary
#AB9B55
accent
#BF4FD8
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #2A397A

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

Preview Lab → · Contrast checker → · Palette generator →

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