#2C3379#2C3379

#2C3379 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.118 H 274.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2C3379
RGBrgb(44, 51, 121)
HSLhsl(235, 47%, 32%)
HSVhsv(235, 64%, 47%)
CMYKcmyk(63.6%, 57.9%, 0%, 52.5%)
CIE-LABlab(24.59, 20.46, -41.02)
CIE-LCHlch(24.59, 45.84, 296.50°)
OKLaboklab(35.79% 0.0092 -0.1178)
OKLCHoklch(35.79% 0.118 274.5)
XYZxyz(5.6726, 4.2831, 18.6133)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3379 #79722C
analogous
#2C5A79 #2C3379 #4B2C79
triadic
#2C3379 #792C33 #33792C
tetradic
#2C3379 #792C5A #79722C #2C794B
square
#2C3379 #792C5A #79722C #2C794B
split-complementary
#2C3379 #794B2C #5A792C
monochromatic
#0B0D1F #1C204C #2C3379 #3C46A6 #5C65C4

Accessibility & contrast

On white

11.31
#2C3379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C3379
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3379#FFFFFF#000000##FFFFFF
##2C33791.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7B
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#004450
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c3379;
/* rgb */ color: rgb(44, 51, 121);
/* oklch */ color: oklch(35.8% 0.118 274.5);
Tailwind
colors: {
  custom: {
    50: '#6e6aa0',
    500: '#2c3379',
    950: '#000000',
  },
}
SCSS
$custom: #2c3379;
$custom-light: #6e6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3379",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 121
  },
  "hsl": {
    "h": 234.545,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3579,
    "c": 0.11813,
    "h": 274.5
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#2C3379
secondary
#AAA257
accent
#CA51D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2C3379

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

Preview Lab → · Contrast checker → · Palette generator →

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