#2F2C7C#2F2C7C

#2F2C7C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.131 H 278.8°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2F2C7C
RGBrgb(47, 44, 124)
HSLhsl(242, 48%, 33%)
HSVhsv(242, 65%, 49%)
CMYKcmyk(62.1%, 64.5%, 0%, 51.4%)
CIE-LABlab(23.20, 26.84, -45.16)
CIE-LCHlch(23.20, 52.53, 300.72°)
OKLaboklab(34.9% 0.0201 -0.1299)
OKLCHoklch(34.9% 0.131 278.8)
XYZxyz(5.7099, 3.8605, 19.5091)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C7C #797C2C
analogous
#2C517C #2F2C7C #572C7C
triadic
#2F2C7C #7C2F2C #2C7C2F
tetradic
#2F2C7C #7C2C51 #797C2C #2C7C57
square
#2F2C7C #7C2C51 #797C2C #2C7C57
split-complementary
#2F2C7C #7C572C #517C2C
monochromatic
#0D0C22 #1E1C4F #2F2C7C #403CA9 #615DC5

Accessibility & contrast

On white

11.85
#2F2C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C7C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C7C#FFFFFF#000000##FFFFFF
##2F2C7C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2c7c;
/* rgb */ color: rgb(47, 44, 124);
/* oklch */ color: oklch(34.9% 0.131 278.8);
Tailwind
colors: {
  custom: {
    50: '#7065a3',
    500: '#2f2c7c',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c7c;
$custom-light: #7065a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c7c",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 242.25,
    "s": 47.619,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34903,
    "c": 0.13144,
    "h": 278.8
  },
  "luminance": 0.03861
}

Semantic roles & 50–950 ramp

primary
#2F2C7C
secondary
#A8AC58
accent
#D751D2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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