#2A397C#2A397C

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

Color values

HEX#2A397C
RGBrgb(42, 57, 124)
HSLhsl(229, 49%, 33%)
HSVhsv(229, 66%, 49%)
CMYKcmyk(66.1%, 54%, 0%, 51.4%)
CIE-LABlab(26.37, 17.06, -40.04)
CIE-LCHlch(26.37, 43.52, 293.08°)
OKLaboklab(37.17% 0.0008 -0.1148)
OKLCHoklch(37.17% 0.115 270.4)
XYZxyz(6.0548, 4.8732, 19.6864)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A397C #7C6D2A
analogous
#2A627C #2A397C #442A7C
triadic
#2A397C #7C2A39 #397C2A
tetradic
#2A397C #7C2A62 #7C6D2A #2A7C44
square
#2A397C #7C2A62 #7C6D2A #2A7C44
split-complementary
#2A397C #7C442A #627C2A
monochromatic
#0B0F21 #1B244E #2A397C #394EAA #596DC7

Accessibility & contrast

On white

10.63
#2A397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A397C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A397C
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A397C#FFFFFF#000000##FFFFFF
##2A397C1.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427E
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a397c;
/* rgb */ color: rgb(42, 57, 124);
/* oklch */ color: oklch(37.2% 0.115 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d6fa2',
    500: '#2a397c',
    950: '#000000',
  },
}
SCSS
$custom: #2a397c;
$custom-light: #6d6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a397c",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 229.024,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37167,
    "c": 0.11485,
    "h": 270.4
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A397C

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

Preview Lab → · Contrast checker → · Palette generator →

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