#2F2C8D#2F2C8D

#2F2C8D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.155 H 276.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2F2C8D
RGBrgb(47, 44, 141)
HSLhsl(242, 52%, 36%)
HSVhsv(242, 69%, 55%)
CMYKcmyk(66.7%, 68.8%, 0%, 44.7%)
CIE-LABlab(24.73, 32.82, -53.33)
CIE-LCHlch(24.73, 62.62, 301.61°)
OKLaboklab(36.48% 0.0184 -0.1539)
OKLCHoklch(36.48% 0.155 276.8)
XYZxyz(6.8791, 4.3282, 25.6670)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C8D #8A8D2C
analogous
#2C5A8D #2F2C8D #602C8D
triadic
#2F2C8D #8D2F2C #2C8D2F
tetradic
#2F2C8D #8D2C5A #8A8D2C #2C8D60
square
#2F2C8D #8D2C5A #8A8D2C #2C8D60
split-complementary
#2F2C8D #8D602C #5A8D2C
monochromatic
#100F30 #1F1D5E #2F2C8D #3F3BBC #6865CF

Accessibility & contrast

On white

11.26
#2F2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2C8D
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C8D#FFFFFF#000000##FFFFFF
##2F2C8D1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2c8d;
/* rgb */ color: rgb(47, 44, 141);
/* oklch */ color: oklch(36.5% 0.155 276.8);
Tailwind
colors: {
  custom: {
    50: '#7466af',
    500: '#2f2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c8d;
$custom-light: #7466af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c8d",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 241.856,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36483,
    "c": 0.15496,
    "h": 276.8
  },
  "luminance": 0.04329
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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