#2C3A86#2C3A86

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

Color values

HEX#2C3A86
RGBrgb(44, 58, 134)
HSLhsl(231, 51%, 35%)
HSVhsv(231, 67%, 53%)
CMYKcmyk(67.2%, 56.7%, 0%, 47.5%)
CIE-LABlab(27.52, 20.51, -44.43)
CIE-LCHlch(27.52, 48.93, 294.78°)
OKLaboklab(38.31% 0.0027 -0.1277)
OKLCHoklch(38.31% 0.128 271.2)
XYZxyz(6.8534, 5.2822, 23.2080)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3A86 #86782C
analogous
#2C6786 #2C3A86 #4B2C86
triadic
#2C3A86 #862C3A #3A862C
tetradic
#2C3A86 #862C67 #86782C #2C864B
square
#2C3A86 #862C67 #86782C #2C864B
split-complementary
#2C3A86 #864B2C #67862C
monochromatic
#0E122A #1D2658 #2C3A86 #3B4EB4 #6172CB

Accessibility & contrast

On white

10.21
#2C3A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C3A86
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3A86#FFFFFF#000000##FFFFFF
##2C3A861.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c3a86;
/* rgb */ color: rgb(44, 58, 134);
/* oklch */ color: oklch(38.3% 0.128 271.2);
Tailwind
colors: {
  custom: {
    50: '#706faa',
    500: '#2c3a86',
    950: '#000000',
  },
}
SCSS
$custom: #2c3a86;
$custom-light: #706faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3a86",
  "rgb": {
    "r": 44,
    "g": 58,
    "b": 134
  },
  "hsl": {
    "h": 230.667,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38306,
    "c": 0.12773,
    "h": 271.2
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#2C3A86
secondary
#B1A45C
accent
#C44EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2C3A86

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

Preview Lab → · Contrast checker → · Palette generator →

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