#2C3181#2C3181

#2C3181 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.133 H 274.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2C3181
RGBrgb(44, 49, 129)
HSLhsl(236, 49%, 34%)
HSVhsv(236, 66%, 51%)
CMYKcmyk(65.9%, 62%, 0%, 49.4%)
CIE-LABlab(24.69, 24.77, -45.90)
CIE-LCHlch(24.69, 52.16, 298.35°)
OKLaboklab(36.07% 0.0112 -0.1321)
OKLCHoklch(36.07% 0.133 274.8)
XYZxyz(6.0982, 4.3166, 21.2764)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3181 #817C2C
analogous
#2C5C81 #2C3181 #522C81
triadic
#2C3181 #812C31 #31812C
tetradic
#2C3181 #812C5C #817C2C #2C8152
square
#2C3181 #812C5C #817C2C #2C8152
split-complementary
#2C3181 #81522C #5C812C
monochromatic
#0D0E26 #1C2053 #2C3181 #3C42AF #5F65C8

Accessibility & contrast

On white

11.27
#2C3181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2C3181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3181
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3181#FFFFFF#000000##FFFFFF
##2C31811.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c3181;
/* rgb */ color: rgb(44, 49, 129);
/* oklch */ color: oklch(36.1% 0.133 274.8);
Tailwind
colors: {
  custom: {
    50: '#7069a6',
    500: '#2c3181',
    950: '#000000',
  },
}
SCSS
$custom: #2c3181;
$custom-light: #7069a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3181",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 236.471,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36071,
    "c": 0.1326,
    "h": 274.8
  },
  "luminance": 0.04317
}

Semantic roles & 50–950 ramp

primary
#2C3181
secondary
#AFAA5A
accent
#D14FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C3181

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

Preview Lab → · Contrast checker → · Palette generator →

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