#2C3287#2C3287

#2C3287 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.140 H 274.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2C3287
RGBrgb(44, 50, 135)
HSLhsl(236, 51%, 35%)
HSVhsv(236, 67%, 53%)
CMYKcmyk(67.4%, 63%, 0%, 47.1%)
CIE-LABlab(25.46, 26.30, -48.41)
CIE-LCHlch(25.46, 55.09, 298.52°)
OKLaboklab(36.8% 0.0101 -0.1395)
OKLCHoklch(36.8% 0.14 274.1)
XYZxyz(6.5510, 4.5654, 23.4529)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3287 #87812C
analogous
#2C5F87 #2C3287 #532C87
triadic
#2C3287 #872C32 #32872C
tetradic
#2C3287 #872C5F #87812C #2C8753
square
#2C3287 #872C5F #87812C #2C8753
split-complementary
#2C3287 #87532C #5F872C
monochromatic
#0E102B #1D2159 #2C3287 #3B43B5 #6269CC

Accessibility & contrast

On white

10.98
#2C3287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2C3287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3287
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3287#FFFFFF#000000##FFFFFF
##2C32871.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.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: #2c3287;
/* rgb */ color: rgb(44, 50, 135);
/* oklch */ color: oklch(36.8% 0.140 274.1);
Tailwind
colors: {
  custom: {
    50: '#716aab',
    500: '#2c3287',
    950: '#000000',
  },
}
SCSS
$custom: #2c3287;
$custom-light: #716aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3287",
  "rgb": {
    "r": 44,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 236.044,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36795,
    "c": 0.13986,
    "h": 274.1
  },
  "luminance": 0.04566
}

Semantic roles & 50–950 ramp

primary
#2C3287
secondary
#B2AC5D
accent
#D14DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2C3287

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

Preview Lab → · Contrast checker → · Palette generator →

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