#2F2C9E#2F2C9E

#2F2C9E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.177 H 275.1°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2F2C9E
RGBrgb(47, 44, 158)
HSLhsl(242, 56%, 40%)
HSVhsv(242, 72%, 62%)
CMYKcmyk(70.3%, 72.2%, 0%, 38%)
CIE-LABlab(26.37, 38.68, -61.08)
CIE-LCHlch(26.37, 72.30, 302.34°)
OKLaboklab(38.17% 0.0159 -0.1765)
OKLCHoklch(38.17% 0.177 275.1)
XYZxyz(8.2425, 4.8736, 32.8474)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C9E #9B9E2C
analogous
#2C629E #2F2C9E #682C9E
triadic
#2F2C9E #9E2F2C #2C9E2F
tetradic
#2F2C9E #9E2C62 #9B9E2C #2C9E68
square
#2F2C9E #9E2C62 #9B9E2C #2C9E68
split-complementary
#2F2C9E #9E682C #629E2C
monochromatic
#13113E #211F6E #2F2C9E #423EC9 #716ED7

Accessibility & contrast

On white

10.63
#2F2C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2C9E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C9E#FFFFFF#000000##FFFFFF
##2F2C9E1.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2c9e;
/* rgb */ color: rgb(47, 44, 158);
/* oklch */ color: oklch(38.2% 0.177 275.1);
Tailwind
colors: {
  custom: {
    50: '#7866bc',
    500: '#2f2c9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c9e;
$custom-light: #7866bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c9e",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 241.579,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38165,
    "c": 0.17725,
    "h": 275.1
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#2F2C9E
secondary
#BBBE68
accent
#E048DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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