#2F2C7D#2F2C7D

#2F2C7D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.133 H 278.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2F2C7D
RGBrgb(47, 44, 125)
HSLhsl(242, 48%, 33%)
HSVhsv(242, 65%, 49%)
CMYKcmyk(62.4%, 64.8%, 0%, 51%)
CIE-LABlab(23.29, 27.19, -45.65)
CIE-LCHlch(23.29, 53.14, 300.78°)
OKLaboklab(34.99% 0.02 -0.1313)
OKLCHoklch(34.99% 0.133 278.7)
XYZxyz(5.7735, 3.8859, 19.8439)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C7D #7A7D2C
analogous
#2C517D #2F2C7D #572C7D
triadic
#2F2C7D #7D2F2C #2C7D2F
tetradic
#2F2C7D #7D2C51 #7A7D2C #2C7D57
square
#2F2C7D #7D2C51 #7A7D2C #2C7D57
split-complementary
#2F2C7D #7D572C #517D2C
monochromatic
#0D0C22 #1E1C50 #2F2C7D #403CAA #615DC6

Accessibility & contrast

On white

11.82
#2F2C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C7D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C7D#FFFFFF#000000##FFFFFF
##2F2C7D1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2c7d;
/* rgb */ color: rgb(47, 44, 125);
/* oklch */ color: oklch(35.0% 0.133 278.7);
Tailwind
colors: {
  custom: {
    50: '#7165a3',
    500: '#2f2c7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c7d;
$custom-light: #7165a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c7d",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 242.222,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34992,
    "c": 0.13287,
    "h": 278.7
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#2F2C7D
secondary
#A9AC59
accent
#D850D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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