#2F2C8A#2F2C8A

#2F2C8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.151 H 277.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2F2C8A
RGBrgb(47, 44, 138)
HSLhsl(242, 52%, 36%)
HSVhsv(242, 68%, 54%)
CMYKcmyk(65.9%, 68.1%, 0%, 45.9%)
CIE-LABlab(24.45, 31.77, -51.92)
CIE-LCHlch(24.45, 60.87, 301.46°)
OKLaboklab(36.2% 0.0188 -0.1497)
OKLCHoklch(36.2% 0.151 277.1)
XYZxyz(6.6589, 4.2401, 24.5073)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C8A #878A2C
analogous
#2C588A #2F2C8A #5E2C8A
triadic
#2F2C8A #8A2F2C #2C8A2F
tetradic
#2F2C8A #8A2C58 #878A2C #2C8A5E
square
#2F2C8A #8A2C58 #878A2C #2C8A5E
split-complementary
#2F2C8A #8A5E2C #588A2C
monochromatic
#0F0E2D #1F1D5C #2F2C8A #3F3BB8 #6663CD

Accessibility & contrast

On white

11.36
#2F2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C8A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C8A#FFFFFF#000000##FFFFFF
##2F2C8A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2c8a;
/* rgb */ color: rgb(47, 44, 138);
/* oklch */ color: oklch(36.2% 0.151 277.1);
Tailwind
colors: {
  custom: {
    50: '#7366ad',
    500: '#2f2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c8a;
$custom-light: #7366ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c8a",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 241.915,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36196,
    "c": 0.1509,
    "h": 277.1
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#2F2C8A
secondary
#B1B45E
accent
#DB4DD7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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