#2C3F87#2C3F87

#2C3F87 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.122 H 269.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2C3F87
RGBrgb(44, 63, 135)
HSLhsl(227, 51%, 35%)
HSVhsv(227, 67%, 53%)
CMYKcmyk(67.4%, 53.3%, 0%, 47.1%)
CIE-LABlab(29.00, 17.46, -42.66)
CIE-LCHlch(29.00, 46.09, 292.26°)
OKLaboklab(39.44% -0.0021 -0.1224)
OKLCHoklch(39.44% 0.122 269)
XYZxyz(7.1879, 5.8391, 23.6652)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3F87 #87742C
analogous
#2C6C87 #2C3F87 #472C87
triadic
#2C3F87 #872C3F #3F872C
tetradic
#2C3F87 #872C6C #87742C #2C8747
square
#2C3F87 #872C6C #87742C #2C8747
split-complementary
#2C3F87 #87472C #6C872C
monochromatic
#0E142B #1D2959 #2C3F87 #3B55B5 #6278CC

Accessibility & contrast

On white

9.69
#2C3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2C3F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3F87
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3F87#FFFFFF#000000##FFFFFF
##2C3F871.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c3f87;
/* rgb */ color: rgb(44, 63, 135);
/* oklch */ color: oklch(39.4% 0.122 269.0);
Tailwind
colors: {
  custom: {
    50: '#7073aa',
    500: '#2c3f87',
    950: '#000000',
  },
}
SCSS
$custom: #2c3f87;
$custom-light: #7073aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3f87",
  "rgb": {
    "r": 44,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 227.473,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39443,
    "c": 0.12244,
    "h": 269
  },
  "luminance": 0.0584
}

Semantic roles & 50–950 ramp

primary
#2C3F87
secondary
#B2A05D
accent
#BD4DDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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