#2C34A2#2C34A2

#2C34A2 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.174 H 272.2°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#2C34A2
RGBrgb(44, 52, 162)
HSLhsl(236, 57%, 40%)
HSVhsv(236, 73%, 64%)
CMYKcmyk(72.8%, 67.9%, 0%, 36.5%)
CIE-LABlab(28.38, 34.79, -60.22)
CIE-LCHlch(28.38, 69.55, 300.02°)
OKLaboklab(39.68% 0.0067 -0.1741)
OKLCHoklch(39.68% 0.174 272.2)
XYZxyz(8.7861, 5.5992, 34.7931)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C34A2 #A29A2C
analogous
#2C6FA2 #2C34A2 #5F2CA2
triadic
#2C34A2 #A22C34 #34A22C
tetradic
#2C34A2 #A22C6F #A29A2C #2CA25F
square
#2C34A2 #A22C6F #A29A2C #2CA25F
split-complementary
#2C34A2 #A25F2C #6FA22C
monochromatic
#121542 #1F2572 #2C34A2 #4049CB #7077D8

Accessibility & contrast

On white

9.91
#2C34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2C34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C34A2
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C34A2#FFFFFF#000000##FFFFFF
##2C34A21.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c34a2;
/* rgb */ color: rgb(44, 52, 162);
/* oklch */ color: oklch(39.7% 0.174 272.2);
Tailwind
colors: {
  custom: {
    50: '#776cbf',
    500: '#2c34a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c34a2;
$custom-light: #776cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c34a2",
  "rgb": {
    "r": 44,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 235.932,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39679,
    "c": 0.17423,
    "h": 272.2
  },
  "luminance": 0.056
}

Semantic roles & 50–950 ramp

primary
#2C34A2
secondary
#BFBA6A
accent
#D647E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2C34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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