#2C3A87#2C3A87

#2C3A87 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.129 H 271.2°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2C3A87
RGBrgb(44, 58, 135)
HSLhsl(231, 51%, 35%)
HSVhsv(231, 67%, 53%)
CMYKcmyk(67.4%, 57%, 0%, 47.1%)
CIE-LABlab(27.60, 20.88, -44.93)
CIE-LCHlch(27.60, 49.54, 294.93°)
OKLaboklab(38.39% 0.0028 -0.1292)
OKLCHoklch(38.39% 0.129 271.2)
XYZxyz(6.9235, 5.3102, 23.5771)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3A87 #87792C
analogous
#2C6887 #2C3A87 #4B2C87
triadic
#2C3A87 #872C3A #3A872C
tetradic
#2C3A87 #872C68 #87792C #2C874B
square
#2C3A87 #872C68 #87792C #2C874B
split-complementary
#2C3A87 #874B2C #68872C
monochromatic
#0E122B #1D2659 #2C3A87 #3B4EB5 #6272CC

Accessibility & contrast

On white

10.18
#2C3A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2C3A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3A87
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3A87#FFFFFF#000000##FFFFFF
##2C3A871.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c3a87;
/* rgb */ color: rgb(44, 58, 135);
/* oklch */ color: oklch(38.4% 0.129 271.2);
Tailwind
colors: {
  custom: {
    50: '#706fab',
    500: '#2c3a87',
    950: '#000000',
  },
}
SCSS
$custom: #2c3a87;
$custom-light: #706fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3a87",
  "rgb": {
    "r": 44,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 230.769,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38388,
    "c": 0.12919,
    "h": 271.2
  },
  "luminance": 0.05311
}

Semantic roles & 50–950 ramp

primary
#2C3A87
secondary
#B2A55D
accent
#C54DDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2C3A87

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

Preview Lab → · Contrast checker → · Palette generator →

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