#2C3187#2C3187

#2C3187 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.141 H 274.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2C3187
RGBrgb(44, 49, 135)
HSLhsl(237, 51%, 35%)
HSVhsv(237, 67%, 53%)
CMYKcmyk(67.4%, 63.7%, 0%, 47.1%)
CIE-LABlab(25.20, 26.97, -48.83)
CIE-LCHlch(25.20, 55.78, 298.91°)
OKLaboklab(36.61% 0.011 -0.1407)
OKLCHoklch(36.61% 0.141 274.5)
XYZxyz(6.5087, 4.4808, 23.4389)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3187 #87822C
analogous
#2C5F87 #2C3187 #542C87
triadic
#2C3187 #872C31 #31872C
tetradic
#2C3187 #872C5F #87822C #2C8754
square
#2C3187 #872C5F #87822C #2C8754
split-complementary
#2C3187 #87542C #5F872C
monochromatic
#0E0F2B #1D2059 #2C3187 #3B42B5 #6268CC

Accessibility & contrast

On white

11.07
#2C3187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2C3187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3187
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3187#FFFFFF#000000##FFFFFF
##2C31871.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c3187;
/* rgb */ color: rgb(44, 49, 135);
/* oklch */ color: oklch(36.6% 0.141 274.5);
Tailwind
colors: {
  custom: {
    50: '#7169ab',
    500: '#2c3187',
    950: '#000000',
  },
}
SCSS
$custom: #2c3187;
$custom-light: #7169ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3187",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 135
  },
  "hsl": {
    "h": 236.703,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36606,
    "c": 0.14116,
    "h": 274.5
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#2C3187
secondary
#B2AD5D
accent
#D34DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2C3187

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

Preview Lab → · Contrast checker → · Palette generator →

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