#2B297F#2B297F

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

Color values

HEX#2B297F
RGBrgb(43, 41, 127)
HSLhsl(241, 51%, 33%)
HSVhsv(241, 68%, 50%)
CMYKcmyk(66.1%, 67.7%, 0%, 50.2%)
CIE-LABlab(22.41, 29.20, -48.36)
CIE-LCHlch(22.41, 56.49, 301.13°)
OKLaboklab(34.33% 0.0172 -0.1394)
OKLCHoklch(34.33% 0.141 277)
XYZxyz(5.6187, 3.6313, 20.4794)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B297F #7D7F29
analogous
#29527F #2B297F #56297F
triadic
#2B297F #7F2B29 #297F2B
tetradic
#2B297F #7F2952 #7D7F29 #297F56
square
#2B297F #7F2952 #7D7F29 #297F56
split-complementary
#2B297F #7F5629 #527F29
monochromatic
#0C0B22 #1B1A51 #2B297F #3B38AD #5C59C9

Accessibility & contrast

On white

12.16
#2B297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B297F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B297F#FFFFFF#000000##FFFFFF
##2B297F1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b297f;
/* rgb */ color: rgb(43, 41, 127);
/* oklch */ color: oklch(34.3% 0.141 277.0);
Tailwind
colors: {
  custom: {
    50: '#6f63a5',
    500: '#2b297f',
    950: '#000000',
  },
}
SCSS
$custom: #2b297f;
$custom-light: #6f63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b297f",
  "rgb": {
    "r": 43,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 241.395,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34327,
    "c": 0.1405,
    "h": 277
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#2B297F
secondary
#ADAF55
accent
#DB4DD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B297F

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

Preview Lab → · Contrast checker → · Palette generator →

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