#2F2C84#2F2C84

#2F2C84 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.143 H 277.8°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2F2C84
RGBrgb(47, 44, 132)
HSLhsl(242, 50%, 35%)
HSVhsv(242, 67%, 52%)
CMYKcmyk(64.4%, 66.7%, 0%, 48.2%)
CIE-LABlab(23.91, 29.66, -49.06)
CIE-LCHlch(23.91, 57.33, 301.16°)
OKLaboklab(35.63% 0.0194 -0.1413)
OKLCHoklch(35.63% 0.143 277.8)
XYZxyz(6.2365, 4.0712, 22.2825)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C84 #81842C
analogous
#2C5584 #2F2C84 #5B2C84
triadic
#2F2C84 #842F2C #2C842F
tetradic
#2F2C84 #842C55 #81842C #2C845B
square
#2F2C84 #842C55 #81842C #2C845B
split-complementary
#2F2C84 #845B2C #55842C
monochromatic
#0E0D28 #1F1D56 #2F2C84 #3F3BB2 #6460CA

Accessibility & contrast

On white

11.57
#2F2C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C84
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C84#FFFFFF#000000##FFFFFF
##2F2C841.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003582
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2c84;
/* rgb */ color: rgb(47, 44, 132);
/* oklch */ color: oklch(35.6% 0.143 277.8);
Tailwind
colors: {
  custom: {
    50: '#7265a9',
    500: '#2f2c84',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c84;
$custom-light: #7265a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c84",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 132
  },
  "hsl": {
    "h": 242.045,
    "s": 50,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35632,
    "c": 0.14268,
    "h": 277.8
  },
  "luminance": 0.04072
}

Semantic roles & 50–950 ramp

primary
#2F2C84
secondary
#ADB05C
accent
#DA4ED5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2C84

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

Preview Lab → · Contrast checker → · Palette generator →

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