#2C4181#2C4181

#2C4181 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.111 H 267.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2C4181
RGBrgb(44, 65, 129)
HSLhsl(225, 49%, 34%)
HSVhsv(225, 66%, 51%)
CMYKcmyk(65.9%, 49.6%, 0%, 49.4%)
CIE-LABlab(29.16, 13.83, -38.67)
CIE-LCHlch(29.16, 41.07, 289.67°)
OKLaboklab(39.43% -0.0049 -0.1107)
OKLCHoklch(39.43% 0.111 267.5)
XYZxyz(6.8901, 5.9004, 21.5404)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4181 #816C2C
analogous
#2C6C81 #2C4181 #422C81
triadic
#2C4181 #812C41 #41812C
tetradic
#2C4181 #812C6C #816C2C #2C8142
square
#2C4181 #812C6C #816C2C #2C8142
split-complementary
#2C4181 #81422C #6C812C
monochromatic
#0D1326 #1C2A53 #2C4181 #3C58AF #5F79C8

Accessibility & contrast

On white

9.63
#2C4181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2C4181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4181
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4181#FFFFFF#000000##FFFFFF
##2C41811.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204983
Deuteranopia (green-blind)
#0F4180
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2c4181;
/* rgb */ color: rgb(44, 65, 129);
/* oklch */ color: oklch(39.4% 0.111 267.5);
Tailwind
colors: {
  custom: {
    50: '#6f75a6',
    500: '#2c4181',
    950: '#000000',
  },
}
SCSS
$custom: #2c4181;
$custom-light: #6f75a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4181",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 225.176,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39428,
    "c": 0.11078,
    "h": 267.5
  },
  "luminance": 0.05901
}

Semantic roles & 50–950 ramp

primary
#2C4181
secondary
#AF9A5A
accent
#B74FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2C4181

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

Preview Lab → · Contrast checker → · Palette generator →

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