#2A397D#2A397D

#2A397D is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.2% C 0.116 H 270.4°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2A397D
RGBrgb(42, 57, 125)
HSLhsl(229, 50%, 33%)
HSVhsv(229, 66%, 49%)
CMYKcmyk(66.4%, 54.4%, 0%, 51%)
CIE-LABlab(26.44, 17.44, -40.55)
CIE-LCHlch(26.44, 44.14, 293.27°)
OKLaboklab(37.25% 0.0009 -0.1163)
OKLCHoklch(37.25% 0.116 270.4)
XYZxyz(6.1184, 4.8986, 20.0212)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A397D #7D6E2A
analogous
#2A627D #2A397D #452A7D
triadic
#2A397D #7D2A39 #397D2A
tetradic
#2A397D #7D2A62 #7D6E2A #2A7D45
square
#2A397D #7D2A62 #7D6E2A #2A7D45
split-complementary
#2A397D #7D452A #627D2A
monochromatic
#0B0F21 #1B244F #2A397D #394EAB #5A6EC8

Accessibility & contrast

On white

10.61
#2A397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A397D
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A397D#FFFFFF#000000##FFFFFF
##2A397D1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E427F
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a397d;
/* rgb */ color: rgb(42, 57, 125);
/* oklch */ color: oklch(37.2% 0.116 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d6fa3',
    500: '#2a397d',
    950: '#000000',
  },
}
SCSS
$custom: #2a397d;
$custom-light: #6d6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a397d",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 229.157,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37246,
    "c": 0.11635,
    "h": 270.4
  },
  "luminance": 0.04899
}

Semantic roles & 50–950 ramp

primary
#2A397D
secondary
#AD9D56
accent
#C04FD9
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A397D

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

Preview Lab → · Contrast checker → · Palette generator →

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