#2A297F#2A297F

#2A297F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.141 H 276.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#2A297F
RGBrgb(42, 41, 127)
HSLhsl(241, 51%, 33%)
HSVhsv(241, 68%, 50%)
CMYKcmyk(66.9%, 67.7%, 0%, 50.2%)
CIE-LABlab(22.34, 29.05, -48.49)
CIE-LCHlch(22.34, 56.52, 300.92°)
OKLaboklab(34.25% 0.0159 -0.1398)
OKLCHoklch(34.25% 0.141 276.5)
XYZxyz(5.5773, 3.6100, 20.4774)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A297F #7E7F29
analogous
#29537F #2A297F #55297F
triadic
#2A297F #7F2A29 #297F2A
tetradic
#2A297F #7F2953 #7E7F29 #297F55
square
#2A297F #7F2953 #7E7F29 #297F55
split-complementary
#2A297F #7F5529 #537F29
monochromatic
#0B0B22 #1B1A51 #2A297F #3938AD #5A59C9

Accessibility & contrast

On white

12.20
#2A297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A297F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A297F#FFFFFF#000000##FFFFFF
##2A297F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a297f;
/* rgb */ color: rgb(42, 41, 127);
/* oklch */ color: oklch(34.3% 0.141 276.5);
Tailwind
colors: {
  custom: {
    50: '#6f63a5',
    500: '#2a297f',
    950: '#000000',
  },
}
SCSS
$custom: #2a297f;
$custom-light: #6f63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a297f",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 240.698,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34253,
    "c": 0.14074,
    "h": 276.5
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#2A297F
secondary
#AEAF55
accent
#DB4DD9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A297F

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

Preview Lab → · Contrast checker → · Palette generator →

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