#2F2C8E#2F2C8E

#2F2C8E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.156 H 276.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2C8E
RGBrgb(47, 44, 142)
HSLhsl(242, 53%, 36%)
HSVhsv(242, 69%, 56%)
CMYKcmyk(66.9%, 69%, 0%, 44.3%)
CIE-LABlab(24.82, 33.17, -53.79)
CIE-LCHlch(24.82, 63.20, 301.66°)
OKLaboklab(36.58% 0.0183 -0.1552)
OKLCHoklch(36.58% 0.156 276.7)
XYZxyz(6.9539, 4.3581, 26.0607)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C8E #8B8E2C
analogous
#2C5A8E #2F2C8E #602C8E
triadic
#2F2C8E #8E2F2C #2C8E2F
tetradic
#2F2C8E #8E2C5A #8B8E2C #2C8E60
square
#2F2C8E #8E2C5A #8B8E2C #2C8E60
split-complementary
#2F2C8E #8E602C #5A8E2C
monochromatic
#100F31 #201E5F #2F2C8E #3E3ABD #6865CF

Accessibility & contrast

On white

11.22
#2F2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C8E
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C8E#FFFFFF#000000##FFFFFF
##2F2C8E1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2c8e;
/* rgb */ color: rgb(47, 44, 142);
/* oklch */ color: oklch(36.6% 0.156 276.7);
Tailwind
colors: {
  custom: {
    50: '#7466b0',
    500: '#2f2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c8e;
$custom-light: #7466b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c8e",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 241.837,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36579,
    "c": 0.1563,
    "h": 276.7
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

primary
#2F2C8E
secondary
#B3B660
accent
#DC4CD8
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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