#2C3B87#2C3B87

#2C3B87 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.128 H 270.8°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2C3B87
RGBrgb(44, 59, 135)
HSLhsl(230, 51%, 35%)
HSVhsv(230, 67%, 53%)
CMYKcmyk(67.4%, 56.3%, 0%, 47.1%)
CIE-LABlab(27.88, 20.20, -44.48)
CIE-LCHlch(27.88, 48.85, 294.43°)
OKLaboklab(38.6% 0.0018 -0.1278)
OKLCHoklch(38.6% 0.128 270.8)
XYZxyz(6.9744, 5.4120, 23.5941)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3B87 #87782C
analogous
#2C6887 #2C3B87 #4B2C87
triadic
#2C3B87 #872C3B #3B872C
tetradic
#2C3B87 #872C68 #87782C #2C874B
square
#2C3B87 #872C68 #87782C #2C874B
split-complementary
#2C3B87 #874B2C #68872C
monochromatic
#0E132B #1D2759 #2C3B87 #3B4FB5 #6273CC

Accessibility & contrast

On white

10.08
#2C3B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2C3B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3B87
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3B87#FFFFFF#000000##FFFFFF
##2C3B871.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01468A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c3b87;
/* rgb */ color: rgb(44, 59, 135);
/* oklch */ color: oklch(38.6% 0.128 270.8);
Tailwind
colors: {
  custom: {
    50: '#7070ab',
    500: '#2c3b87',
    950: '#000000',
  },
}
SCSS
$custom: #2c3b87;
$custom-light: #7070ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3b87",
  "rgb": {
    "r": 44,
    "g": 59,
    "b": 135
  },
  "hsl": {
    "h": 230.11,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38595,
    "c": 0.12784,
    "h": 270.8
  },
  "luminance": 0.05413
}

Semantic roles & 50–950 ramp

primary
#2C3B87
secondary
#B2A45D
accent
#C34DDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2C3B87

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

Preview Lab → · Contrast checker → · Palette generator →

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