#2A397F#2A397F

#2A397F is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.4% C 0.119 H 270.5°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2A397F
RGBrgb(42, 57, 127)
HSLhsl(229, 50%, 33%)
HSVhsv(229, 67%, 50%)
CMYKcmyk(66.9%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.59, 18.20, -41.57)
CIE-LCHlch(26.59, 45.38, 293.64°)
OKLaboklab(37.41% 0.0011 -0.1193)
OKLCHoklch(37.41% 0.119 270.5)
XYZxyz(6.2474, 4.9502, 20.7008)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A397F #7F702A
analogous
#2A637F #2A397F #452A7F
triadic
#2A397F #7F2A39 #397F2A
tetradic
#2A397F #7F2A63 #7F702A #2A7F45
square
#2A397F #7F2A63 #7F702A #2A7F45
split-complementary
#2A397F #7F452A #637F2A
monochromatic
#0C1023 #1B2451 #2A397F #394EAD #5B6EC9

Accessibility & contrast

On white

10.55
#2A397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A397F
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A397F#FFFFFF#000000##FFFFFF
##2A397F1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4381
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a397f;
/* rgb */ color: rgb(42, 57, 127);
/* oklch */ color: oklch(37.4% 0.119 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e6fa5',
    500: '#2a397f',
    950: '#000000',
  },
}
SCSS
$custom: #2a397f;
$custom-light: #6e6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a397f",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 229.412,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37405,
    "c": 0.11935,
    "h": 270.5
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#2A397F
secondary
#AE9F57
accent
#C14EDA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A397F

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

Preview Lab → · Contrast checker → · Palette generator →

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