#2F2C9D#2F2C9D

#2F2C9D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.176 H 275.2°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2F2C9D
RGBrgb(47, 44, 157)
HSLhsl(242, 56%, 39%)
HSVhsv(242, 72%, 62%)
CMYKcmyk(70.1%, 72%, 0%, 38.4%)
CIE-LABlab(26.27, 38.34, -60.64)
CIE-LCHlch(26.27, 71.74, 302.30°)
OKLaboklab(38.06% 0.016 -0.1752)
OKLCHoklch(38.06% 0.176 275.2)
XYZxyz(8.1568, 4.8393, 32.3960)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C9D #9A9D2C
analogous
#2C629D #2F2C9D #682C9D
triadic
#2F2C9D #9D2F2C #2C9D2F
tetradic
#2F2C9D #9D2C62 #9A9D2C #2C9D68
square
#2F2C9D #9D2C62 #9A9D2C #2C9D68
split-complementary
#2F2C9D #9D682C #629D2C
monochromatic
#12113D #211F6D #2F2C9D #413DC9 #706DD6

Accessibility & contrast

On white

10.67
#2F2C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F2C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C9D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C9D#FFFFFF#000000##FFFFFF
##2F2C9D1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2c9d;
/* rgb */ color: rgb(47, 44, 157);
/* oklch */ color: oklch(38.1% 0.176 275.2);
Tailwind
colors: {
  custom: {
    50: '#7866bb',
    500: '#2f2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c9d;
$custom-light: #7866bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c9d",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 241.593,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38063,
    "c": 0.17597,
    "h": 275.2
  },
  "luminance": 0.0484
}

Semantic roles & 50–950 ramp

primary
#2F2C9D
secondary
#BBBD68
accent
#E048DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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