#2C2F85#2C2F85

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

Color values

HEX#2C2F85
RGBrgb(44, 47, 133)
HSLhsl(238, 50%, 35%)
HSVhsv(238, 67%, 52%)
CMYKcmyk(66.9%, 64.7%, 0%, 47.8%)
CIE-LABlab(24.52, 27.57, -48.69)
CIE-LCHlch(24.52, 55.96, 299.52°)
OKLaboklab(36.05% 0.0128 -0.1403)
OKLCHoklch(36.05% 0.141 275.2)
XYZxyz(6.2875, 4.2614, 22.6769)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F85 #85822C
analogous
#2C5B85 #2C2F85 #562C85
triadic
#2C2F85 #852C2F #2F852C
tetradic
#2C2F85 #852C5B #85822C #2C8556
square
#2C2F85 #852C5B #85822C #2C8556
split-complementary
#2C2F85 #85562C #5B852C
monochromatic
#0E0E29 #1D1F57 #2C2F85 #3B3FB3 #6164CB

Accessibility & contrast

On white

11.34
#2C2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2F85
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F85#FFFFFF#000000##FFFFFF
##2C2F851.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2f85;
/* rgb */ color: rgb(44, 47, 133);
/* oklch */ color: oklch(36.0% 0.141 275.2);
Tailwind
colors: {
  custom: {
    50: '#7167a9',
    500: '#2c2f85',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f85;
$custom-light: #7167a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f85",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 237.978,
    "s": 50.282,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36049,
    "c": 0.14094,
    "h": 275.2
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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