#2C2F87#2C2F87

#2C2F87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.144 H 275.1°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2C2F87
RGBrgb(44, 47, 135)
HSLhsl(238, 51%, 35%)
HSVhsv(238, 67%, 53%)
CMYKcmyk(67.4%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.69, 28.30, -49.66)
CIE-LCHlch(24.69, 57.15, 299.68°)
OKLaboklab(36.23% 0.0127 -0.1432)
OKLCHoklch(36.23% 0.144 275.1)
XYZxyz(6.4270, 4.3172, 23.4116)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F87 #87842C
analogous
#2C5C87 #2C2F87 #562C87
triadic
#2C2F87 #872C2F #2F872C
tetradic
#2C2F87 #872C5C #87842C #2C8756
square
#2C2F87 #872C5C #87842C #2C8756
split-complementary
#2C2F87 #87562C #5C872C
monochromatic
#0E0F2B #1D1F59 #2C2F87 #3B3FB5 #6265CC

Accessibility & contrast

On white

11.27
#2C2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2C2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F87
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F87#FFFFFF#000000##FFFFFF
##2C2F871.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c2f87;
/* rgb */ color: rgb(44, 47, 135);
/* oklch */ color: oklch(36.2% 0.144 275.1);
Tailwind
colors: {
  custom: {
    50: '#7167ab',
    500: '#2c2f87',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f87;
$custom-light: #7167ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f87",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 238.022,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36233,
    "c": 0.14374,
    "h": 275.1
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#2C2F87
secondary
#B2AF5D
accent
#D64DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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