#2C2F86#2C2F86

#2C2F86 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.142 H 275.2°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2C2F86
RGBrgb(44, 47, 134)
HSLhsl(238, 51%, 35%)
HSVhsv(238, 67%, 53%)
CMYKcmyk(67.2%, 64.9%, 0%, 47.5%)
CIE-LABlab(24.61, 27.93, -49.18)
CIE-LCHlch(24.61, 56.56, 299.60°)
OKLaboklab(36.14% 0.0128 -0.1418)
OKLCHoklch(36.14% 0.142 275.2)
XYZxyz(6.3569, 4.2892, 23.0425)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F86 #86832C
analogous
#2C5C86 #2C2F86 #562C86
triadic
#2C2F86 #862C2F #2F862C
tetradic
#2C2F86 #862C5C #86832C #2C8656
square
#2C2F86 #862C5C #86832C #2C8656
split-complementary
#2C2F86 #86562C #5C862C
monochromatic
#0E0F2A #1D1F58 #2C2F86 #3B3FB4 #6165CB

Accessibility & contrast

On white

11.30
#2C2F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2F86
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F86#FFFFFF#000000##FFFFFF
##2C2F861.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2f86;
/* rgb */ color: rgb(44, 47, 134);
/* oklch */ color: oklch(36.1% 0.142 275.2);
Tailwind
colors: {
  custom: {
    50: '#7167aa',
    500: '#2c2f86',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f86;
$custom-light: #7167aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f86",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 238,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36141,
    "c": 0.14234,
    "h": 275.2
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#2C2F86
secondary
#B1AF5C
accent
#D54EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2C2F86

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

Preview Lab → · Contrast checker → · Palette generator →

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