#2C3887#2C3887

#2C3887 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.132 H 272.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2C3887
RGBrgb(44, 56, 135)
HSLhsl(232, 51%, 35%)
HSVhsv(232, 67%, 53%)
CMYKcmyk(67.4%, 58.5%, 0%, 47.1%)
CIE-LABlab(27.05, 22.25, -45.81)
CIE-LCHlch(27.05, 50.93, 295.90°)
OKLaboklab(37.98% 0.0047 -0.1318)
OKLCHoklch(37.98% 0.132 272)
XYZxyz(6.8246, 5.1125, 23.5441)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3887 #877B2C
analogous
#2C6587 #2C3887 #4E2C87
triadic
#2C3887 #872C38 #38872C
tetradic
#2C3887 #872C65 #877B2C #2C874E
square
#2C3887 #872C65 #877B2C #2C874E
split-complementary
#2C3887 #874E2C #65872C
monochromatic
#0E122B #1D2559 #2C3887 #3B4BB5 #6270CC

Accessibility & contrast

On white

10.38
#2C3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2C3887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3887
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3887#FFFFFF#000000##FFFFFF
##2C38871.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c3887;
/* rgb */ color: rgb(44, 56, 135);
/* oklch */ color: oklch(38.0% 0.132 272.0);
Tailwind
colors: {
  custom: {
    50: '#706eab',
    500: '#2c3887',
    950: '#000000',
  },
}
SCSS
$custom: #2c3887;
$custom-light: #706eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3887",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 232.088,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37978,
    "c": 0.13188,
    "h": 272
  },
  "luminance": 0.05113
}

Semantic roles & 50–950 ramp

primary
#2C3887
secondary
#B2A75D
accent
#C84DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2C3887

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

Preview Lab → · Contrast checker → · Palette generator →

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