#2F2872#2F2872

#2F2872 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.123 H 281.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2F2872
RGBrgb(47, 40, 114)
HSLhsl(246, 48%, 30%)
HSVhsv(246, 65%, 45%)
CMYKcmyk(58.8%, 64.9%, 0%, 55.3%)
CIE-LABlab(21.34, 25.97, -41.81)
CIE-LCHlch(21.34, 49.22, 301.85°)
OKLaboklab(33.27% 0.0248 -0.1201)
OKLCHoklch(33.27% 0.123 281.7)
XYZxyz(4.9674, 3.3365, 16.2986)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2872 #6B7228
analogous
#284672 #2F2872 #542872
triadic
#2F2872 #722F28 #28722F
tetradic
#2F2872 #722846 #6B7228 #287254
square
#2F2872 #722846 #6B7228 #287254
split-complementary
#2F2872 #725428 #467228
monochromatic
#0A0817 #1C1845 #2F2872 #42389F #5D52C2

Accessibility & contrast

On white

12.59
#2F2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2872
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2872#FFFFFF#000000##FFFFFF
##2F28721.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#0D3A49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2872;
/* rgb */ color: rgb(47, 40, 114);
/* oklch */ color: oklch(33.3% 0.123 281.7);
Tailwind
colors: {
  custom: {
    50: '#6f629b',
    500: '#2f2872',
    950: '#000000',
  },
}
SCSS
$custom: #2f2872;
$custom-light: #6f629b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2872",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 245.676,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33273,
    "c": 0.12261,
    "h": 281.7
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#2F2872
secondary
#9CA452
accent
#D850CB
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2872

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

Preview Lab → · Contrast checker → · Palette generator →

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