#2F2C88#2F2C88

#2F2C88 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.148 H 277.4°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2F2C88
RGBrgb(47, 44, 136)
HSLhsl(242, 51%, 35%)
HSVhsv(242, 68%, 53%)
CMYKcmyk(65.4%, 67.6%, 0%, 46.7%)
CIE-LABlab(24.27, 31.07, -50.97)
CIE-LCHlch(24.27, 59.69, 301.36°)
OKLaboklab(36.01% 0.019 -0.147)
OKLCHoklch(36.01% 0.148 277.4)
XYZxyz(6.5155, 4.1827, 23.7518)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C88 #85882C
analogous
#2C5788 #2F2C88 #5D2C88
triadic
#2F2C88 #882F2C #2C882F
tetradic
#2F2C88 #882C57 #85882C #2C885D
square
#2F2C88 #882C57 #85882C #2C885D
split-complementary
#2F2C88 #885D2C #57882C
monochromatic
#0F0E2C #1F1D5A #2F2C88 #3F3BB6 #6662CC

Accessibility & contrast

On white

11.43
#2F2C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F2C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C88
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C88#FFFFFF#000000##FFFFFF
##2F2C881.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2c88;
/* rgb */ color: rgb(47, 44, 136);
/* oklch */ color: oklch(36.0% 0.148 277.4);
Tailwind
colors: {
  custom: {
    50: '#7365ac',
    500: '#2f2c88',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c88;
$custom-light: #7365ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c88",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 241.957,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36006,
    "c": 0.14818,
    "h": 277.4
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#2F2C88
secondary
#B0B35D
accent
#DB4DD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2C88

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

Preview Lab → · Contrast checker → · Palette generator →

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