#2A397B#2A397B

#2A397B is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.1% C 0.113 H 270.4°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2A397B
RGBrgb(42, 57, 123)
HSLhsl(229, 49%, 32%)
HSVhsv(229, 66%, 48%)
CMYKcmyk(65.9%, 53.7%, 0%, 51.8%)
CIE-LABlab(26.30, 16.68, -39.53)
CIE-LCHlch(26.30, 42.90, 292.88°)
OKLaboklab(37.09% 0.0007 -0.1133)
OKLCHoklch(37.09% 0.113 270.4)
XYZxyz(5.9919, 4.8480, 19.3550)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A397B #7B6C2A
analogous
#2A627B #2A397B #442A7B
triadic
#2A397B #7B2A39 #397B2A
tetradic
#2A397B #7B2A62 #7B6C2A #2A7B44
square
#2A397B #7B2A62 #7B6C2A #2A7B44
split-complementary
#2A397B #7B442A #627B2A
monochromatic
#0B0F20 #1A244D #2A397B #3A4EA9 #596DC6

Accessibility & contrast

On white

10.66
#2A397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A397B
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A397B#FFFFFF#000000##FFFFFF
##2A397B1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427D
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a397b;
/* rgb */ color: rgb(42, 57, 123);
/* oklch */ color: oklch(37.1% 0.113 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d6fa2',
    500: '#2a397b',
    950: '#000000',
  },
}
SCSS
$custom: #2a397b;
$custom-light: #6d6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a397b",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 228.889,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37088,
    "c": 0.11334,
    "h": 270.4
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#2A397B
secondary
#AC9C55
accent
#BF4FD9
background
#F6F6FA
surface
#ECECF3
border
#C7C7CD
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A397B

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

Preview Lab → · Contrast checker → · Palette generator →

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