#2F29AB#2F29AB

#2F29AB is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.1% C 0.197 H 274.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2F29AB
RGBrgb(47, 41, 171)
HSLhsl(243, 61%, 42%)
HSVhsv(243, 76%, 67%)
CMYKcmyk(72.5%, 76%, 0%, 32.9%)
CIE-LABlab(27.10, 44.73, -67.75)
CIE-LCHlch(27.10, 81.18, 303.44°)
OKLaboklab(39.09% 0.0151 -0.196)
OKLCHoklch(39.09% 0.197 274.4)
XYZxyz(9.3135, 5.1296, 39.0195)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F29AB #A5AB29
analogous
#2964AB #2F29AB #7029AB
triadic
#2F29AB #AB2F29 #29AB2F
tetradic
#2F29AB #AB2964 #A5AB29 #29AB70
square
#2F29AB #AB2964 #A5AB29 #29AB70
split-complementary
#2F29AB #AB7029 #64AB29
monochromatic
#141148 #211D7A #2F29AB #4740D1 #7671DD

Accessibility & contrast

On white

10.37
#2F29AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F29AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F29AB
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F29AB#FFFFFF#000000##FFFFFF
##2F29AB1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f29ab;
/* rgb */ color: rgb(47, 41, 171);
/* oklch */ color: oklch(39.1% 0.197 274.4);
Tailwind
colors: {
  custom: {
    50: '#7b65c5',
    500: '#2f29ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f29ab;
$custom-light: #7b65c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f29ab",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 242.769,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39085,
    "c": 0.19653,
    "h": 274.4
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#2F29AB
secondary
#C0C46C
accent
#E443DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F29AB

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

Preview Lab → · Contrast checker → · Palette generator →

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