#2F207F#2F207F

#2F207F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.151 H 281.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2F207F
RGBrgb(47, 32, 127)
HSLhsl(249, 60%, 31%)
HSVhsv(249, 75%, 50%)
CMYKcmyk(63%, 74.8%, 0%, 50.2%)
CIE-LABlab(20.71, 35.38, -51.14)
CIE-LCHlch(20.71, 62.19, 304.68°)
OKLaboklab(33.19% 0.0302 -0.1474)
OKLCHoklch(33.19% 0.151 281.6)
XYZxyz(5.5184, 3.1693, 20.3955)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F207F #707F20
analogous
#20407F #2F207F #5E207F
triadic
#2F207F #7F2F20 #207F2F
tetradic
#2F207F #7F2040 #707F20 #207F5E
square
#2F207F #7F2040 #707F20 #207F5E
split-complementary
#2F207F #7F5E20 #407F20
monochromatic
#0B071D #1D144E #2F207F #412CB0 #5E48D1

Accessibility & contrast

On white

12.85
#2F207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F207F
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F207F#FFFFFF#000000##FFFFFF
##2F207F1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f207f;
/* rgb */ color: rgb(47, 32, 127);
/* oklch */ color: oklch(33.2% 0.151 281.6);
Tailwind
colors: {
  custom: {
    50: '#725da5',
    500: '#2f207f',
    950: '#000000',
  },
}
SCSS
$custom: #2f207f;
$custom-light: #725da5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f207f",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 249.474,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33188,
    "c": 0.15052,
    "h": 281.6
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#2F207F
secondary
#A1B249
accent
#E345CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F207F

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

Preview Lab → · Contrast checker → · Palette generator →

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