#2C4087#2C4087

#2C4087 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.121 H 268.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#2C4087
RGBrgb(44, 64, 135)
HSLhsl(227, 51%, 35%)
HSVhsv(227, 67%, 53%)
CMYKcmyk(67.4%, 52.6%, 0%, 47.1%)
CIE-LABlab(29.29, 16.78, -42.20)
CIE-LCHlch(29.29, 45.41, 291.69°)
OKLaboklab(39.66% -0.0031 -0.121)
OKLCHoklch(39.66% 0.121 268.5)
XYZxyz(7.2438, 5.9509, 23.6839)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4087 #87732C
analogous
#2C6E87 #2C4087 #452C87
triadic
#2C4087 #872C40 #40872C
tetradic
#2C4087 #872C6E #87732C #2C8745
square
#2C4087 #872C6E #87732C #2C8745
split-complementary
#2C4087 #87452C #6E872C
monochromatic
#0E142B #1D2A59 #2C4087 #3B56B5 #6279CC

Accessibility & contrast

On white

9.59
#2C4087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2C4087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4087
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4087#FFFFFF#000000##FFFFFF
##2C40871.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16498A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2c4087;
/* rgb */ color: rgb(44, 64, 135);
/* oklch */ color: oklch(39.7% 0.121 268.5);
Tailwind
colors: {
  custom: {
    50: '#7074aa',
    500: '#2c4087',
    950: '#000000',
  },
}
SCSS
$custom: #2c4087;
$custom-light: #7074aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4087",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 226.813,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39659,
    "c": 0.12109,
    "h": 268.5
  },
  "luminance": 0.05952
}

Semantic roles & 50–950 ramp

primary
#2C4087
secondary
#B29F5D
accent
#BB4DDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C4087

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

Preview Lab → · Contrast checker → · Palette generator →

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