#2C4291#2C4291

#2C4291 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.133 H 268.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2C4291
RGBrgb(44, 66, 145)
HSLhsl(227, 53%, 37%)
HSVhsv(227, 70%, 57%)
CMYKcmyk(69.7%, 54.5%, 0%, 43.1%)
CIE-LABlab(30.58, 19.21, -46.27)
CIE-LCHlch(30.58, 50.10, 292.55°)
OKLaboklab(40.87% -0.0041 -0.133)
OKLCHoklch(40.87% 0.133 268.2)
XYZxyz(8.0960, 6.4755, 27.6058)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4291 #917B2C
analogous
#2C7491 #2C4291 #492C91
triadic
#2C4291 #912C42 #42912C
tetradic
#2C4291 #912C74 #917B2C #2C9149
square
#2C4291 #912C74 #917B2C #2C9149
split-complementary
#2C4291 #91492C #74912C
monochromatic
#101733 #1E2D62 #2C4291 #3A57C0 #677ED1

Accessibility & contrast

On white

9.15
#2C4291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2C4291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4291
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4291#FFFFFF#000000##FFFFFF
##2C42911.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4D94
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#005563
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2c4291;
/* rgb */ color: rgb(44, 66, 145);
/* oklch */ color: oklch(40.9% 0.133 268.2);
Tailwind
colors: {
  custom: {
    50: '#7276b2',
    500: '#2c4291',
    950: '#000000',
  },
}
SCSS
$custom: #2c4291;
$custom-light: #7276b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4291",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 145
  },
  "hsl": {
    "h": 226.931,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40869,
    "c": 0.13307,
    "h": 268.2
  },
  "luminance": 0.06476
}

Semantic roles & 50–950 ramp

primary
#2C4291
secondary
#B7A562
accent
#BD4BDD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2C4291

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

Preview Lab → · Contrast checker → · Palette generator →

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