#2F2C9F#2F2C9F

#2F2C9F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.179 H 275.0°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2F2C9F
RGBrgb(47, 44, 159)
HSLhsl(242, 57%, 40%)
HSVhsv(242, 72%, 62%)
CMYKcmyk(70.4%, 72.3%, 0%, 37.6%)
CIE-LABlab(26.47, 39.02, -61.53)
CIE-LCHlch(26.47, 72.86, 302.38°)
OKLaboklab(38.27% 0.0157 -0.1778)
OKLCHoklch(38.27% 0.179 275)
XYZxyz(8.3289, 4.9081, 33.3026)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C9F #9C9F2C
analogous
#2C639F #2F2C9F #682C9F
triadic
#2F2C9F #9F2F2C #2C9F2F
tetradic
#2F2C9F #9F2C63 #9C9F2C #2C9F68
square
#2F2C9F #9F2C63 #9C9F2C #2C9F68
split-complementary
#2F2C9F #9F682C #639F2C
monochromatic
#13113F #211F6F #2F2C9F #423ECA #716ED7

Accessibility & contrast

On white

10.60
#2F2C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F2C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C9F
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C9F#FFFFFF#000000##FFFFFF
##2F2C9F1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2c9f;
/* rgb */ color: rgb(47, 44, 159);
/* oklch */ color: oklch(38.3% 0.179 275.0);
Tailwind
colors: {
  custom: {
    50: '#7866bc',
    500: '#2f2c9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c9f;
$custom-light: #7866bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c9f",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 241.565,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38266,
    "c": 0.17853,
    "h": 275
  },
  "luminance": 0.04909
}

Semantic roles & 50–950 ramp

primary
#2F2C9F
secondary
#BCBE69
accent
#E048DC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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