#2F2178#2F2178

#2F2178 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.140 H 282.7°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2F2178
RGBrgb(47, 33, 120)
HSLhsl(250, 57%, 30%)
HSVhsv(250, 73%, 47%)
CMYKcmyk(60.8%, 72.5%, 0%, 52.9%)
CIE-LABlab(20.23, 32.47, -47.47)
CIE-LCHlch(20.23, 57.51, 304.38°)
OKLaboklab(32.64% 0.0309 -0.1367)
OKLCHoklch(32.64% 0.14 282.7)
XYZxyz(5.1053, 3.0478, 18.0849)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2178 #6A7821
analogous
#213F78 #2F2178 #5A2178
triadic
#2F2178 #782F21 #21782F
tetradic
#2F2178 #78213F #6A7821 #21785A
square
#2F2178 #78213F #6A7821 #21785A
split-complementary
#2F2178 #785A21 #3F7821
monochromatic
#090718 #1C1448 #2F2178 #422EA8 #5C47CC

Accessibility & contrast

On white

13.05
#2F2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2178
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2178#FFFFFF#000000##FFFFFF
##2F21781.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#03384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2178;
/* rgb */ color: rgb(47, 33, 120);
/* oklch */ color: oklch(32.6% 0.140 282.7);
Tailwind
colors: {
  custom: {
    50: '#715ea0',
    500: '#2f2178',
    950: '#000000',
  },
}
SCSS
$custom: #2f2178;
$custom-light: #715ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2178",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 249.655,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.32639,
    "c": 0.14013,
    "h": 282.7
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#2F2178
secondary
#9BAB4A
accent
#E048C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F2178

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

Preview Lab → · Contrast checker → · Palette generator →

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