#2F2C8C#2F2C8C

#2F2C8C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.154 H 276.9°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2F2C8C
RGBrgb(47, 44, 140)
HSLhsl(242, 52%, 36%)
HSVhsv(242, 69%, 55%)
CMYKcmyk(66.4%, 68.6%, 0%, 45.1%)
CIE-LABlab(24.64, 32.47, -52.86)
CIE-LCHlch(24.64, 62.03, 301.56°)
OKLaboklab(36.39% 0.0185 -0.1525)
OKLCHoklch(36.39% 0.154 276.9)
XYZxyz(6.8051, 4.2986, 25.2770)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C8C #898C2C
analogous
#2C598C #2F2C8C #5F2C8C
triadic
#2F2C8C #8C2F2C #2C8C2F
tetradic
#2F2C8C #8C2C59 #898C2C #2C8C5F
square
#2F2C8C #8C2C59 #898C2C #2C8C5F
split-complementary
#2F2C8C #8C5F2C #598C2C
monochromatic
#100F2F #1F1D5D #2F2C8C #3F3BBB #6764CE

Accessibility & contrast

On white

11.29
#2F2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F2C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C8C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C8C#FFFFFF#000000##FFFFFF
##2F2C8C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2c8c;
/* rgb */ color: rgb(47, 44, 140);
/* oklch */ color: oklch(36.4% 0.154 276.9);
Tailwind
colors: {
  custom: {
    50: '#7466af',
    500: '#2f2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c8c;
$custom-light: #7466af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c8c",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 241.875,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36387,
    "c": 0.15361,
    "h": 276.9
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#2F2C8C
secondary
#B2B55F
accent
#DC4CD7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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