#2C4287#2C4287

#2C4287 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.1% C 0.118 H 267.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2C4287
RGBrgb(44, 66, 135)
HSLhsl(225, 51%, 35%)
HSVhsv(225, 67%, 53%)
CMYKcmyk(67.4%, 51.1%, 0%, 47.1%)
CIE-LABlab(29.86, 15.42, -41.27)
CIE-LCHlch(29.86, 44.06, 290.48°)
OKLaboklab(40.1% -0.0051 -0.1183)
OKLCHoklch(40.1% 0.118 267.5)
XYZxyz(7.3586, 6.1805, 23.7221)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4287 #87712C
analogous
#2C6F87 #2C4287 #442C87
triadic
#2C4287 #872C42 #42872C
tetradic
#2C4287 #872C6F #87712C #2C8744
square
#2C4287 #872C6F #87712C #2C8744
split-complementary
#2C4287 #87442C #6F872C
monochromatic
#0E152B #1D2B59 #2C4287 #3B59B5 #627BCC

Accessibility & contrast

On white

9.39
#2C4287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2C4287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4287
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4287#FFFFFF#000000##FFFFFF
##2C42871.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4B8A
Deuteranopia (green-blind)
#034286
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c4287;
/* rgb */ color: rgb(44, 66, 135);
/* oklch */ color: oklch(40.1% 0.118 267.5);
Tailwind
colors: {
  custom: {
    50: '#7076aa',
    500: '#2c4287',
    950: '#000000',
  },
}
SCSS
$custom: #2c4287;
$custom-light: #7076aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4287",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 135
  },
  "hsl": {
    "h": 225.495,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40096,
    "c": 0.1184,
    "h": 267.5
  },
  "luminance": 0.06181
}

Semantic roles & 50–950 ramp

primary
#2C4287
secondary
#B29D5D
accent
#B84DDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C4287

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

Preview Lab → · Contrast checker → · Palette generator →

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