#2C34A6#2C34A6

#2C34A6 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.179 H 272.0°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2C34A6
RGBrgb(44, 52, 166)
HSLhsl(236, 58%, 41%)
HSVhsv(236, 73%, 65%)
CMYKcmyk(73.5%, 68.7%, 0%, 34.9%)
CIE-LABlab(28.76, 36.22, -62.02)
CIE-LCHlch(28.76, 71.82, 300.29°)
OKLaboklab(40.07% 0.0063 -0.1793)
OKLCHoklch(40.07% 0.179 272)
XYZxyz(9.1473, 5.7437, 36.6956)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C34A6 #A69E2C
analogous
#2C71A6 #2C34A6 #612CA6
triadic
#2C34A6 #A62C34 #34A62C
tetradic
#2C34A6 #A62C71 #A69E2C #2CA661
square
#2C34A6 #A62C71 #A69E2C #2CA661
split-complementary
#2C34A6 #A6612C #71A62C
monochromatic
#121645 #1F2576 #2C34A6 #424BCD #7379DA

Accessibility & contrast

On white

9.77
#2C34A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2C34A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C34A6
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C34A6#FFFFFF#000000##FFFFFF
##2C34A61.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c34a6;
/* rgb */ color: rgb(44, 52, 166);
/* oklch */ color: oklch(40.1% 0.179 272.0);
Tailwind
colors: {
  custom: {
    50: '#786cc1',
    500: '#2c34a6',
    950: '#000000',
  },
}
SCSS
$custom: #2c34a6;
$custom-light: #786cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c34a6",
  "rgb": {
    "r": 44,
    "g": 52,
    "b": 166
  },
  "hsl": {
    "h": 236.066,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40068,
    "c": 0.17945,
    "h": 272
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#2C34A6
secondary
#C1BC6D
accent
#D746E1
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2C34A6

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

Preview Lab → · Contrast checker → · Palette generator →

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