#2B297E#2B297E

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

Color values

HEX#2B297E
RGBrgb(43, 41, 126)
HSLhsl(241, 51%, 33%)
HSVhsv(241, 67%, 49%)
CMYKcmyk(65.9%, 67.5%, 0%, 50.6%)
CIE-LABlab(22.32, 28.85, -47.88)
CIE-LCHlch(22.32, 55.90, 301.07°)
OKLaboklab(34.23% 0.0173 -0.138)
OKLCHoklch(34.23% 0.139 277.2)
XYZxyz(5.5539, 3.6054, 20.1378)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B297E #7C7E29
analogous
#29517E #2B297E #56297E
triadic
#2B297E #7E2B29 #297E2B
tetradic
#2B297E #7E2951 #7C7E29 #297E56
square
#2B297E #7E2951 #7C7E29 #297E56
split-complementary
#2B297E #7E5629 #517E29
monochromatic
#0B0B22 #1B1A50 #2B297E #3B38AC #5B59C9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B297E#FFFFFF#000000##FFFFFF
##2B297E1.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)
#003981
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b297e;
/* rgb */ color: rgb(43, 41, 126);
/* oklch */ color: oklch(34.2% 0.139 277.2);
Tailwind
colors: {
  custom: {
    50: '#6f63a4',
    500: '#2b297e',
    950: '#000000',
  },
}
SCSS
$custom: #2b297e;
$custom-light: #6f63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b297e",
  "rgb": {
    "r": 43,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 241.412,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34232,
    "c": 0.1391,
    "h": 277.2
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#2B297E
secondary
#ACAE55
accent
#DA4DD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B297E

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

Preview Lab → · Contrast checker → · Palette generator →

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