#2C3D8A#2C3D8A

#2C3D8A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.130 H 270.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2C3D8A
RGBrgb(44, 61, 138)
HSLhsl(229, 52%, 36%)
HSVhsv(229, 68%, 54%)
CMYKcmyk(68.1%, 55.8%, 0%, 45.9%)
CIE-LABlab(28.66, 19.96, -45.07)
CIE-LCHlch(28.66, 49.29, 293.89°)
OKLaboklab(39.26% 0.0001 -0.1295)
OKLCHoklch(39.26% 0.13 270)
XYZxyz(7.2933, 5.7073, 24.7571)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3D8A #8A792C
analogous
#2C6C8A #2C3D8A #4A2C8A
triadic
#2C3D8A #8A2C3D #3D8A2C
tetradic
#2C3D8A #8A2C6C #8A792C #2C8A4A
square
#2C3D8A #8A2C6C #8A792C #2C8A4A
split-complementary
#2C3D8A #8A4A2C #6C8A2C
monochromatic
#0E142D #1D285C #2C3D8A #3B52B8 #6376CD

Accessibility & contrast

On white

9.81
#2C3D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2C3D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3D8A
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3D8A#FFFFFF#000000##FFFFFF
##2C3D8A1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03488D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c3d8a;
/* rgb */ color: rgb(44, 61, 138);
/* oklch */ color: oklch(39.3% 0.130 270.0);
Tailwind
colors: {
  custom: {
    50: '#7172ad',
    500: '#2c3d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c3d8a;
$custom-light: #7172ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3d8a",
  "rgb": {
    "r": 44,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 229.149,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39256,
    "c": 0.12954,
    "h": 270
  },
  "luminance": 0.05708
}

Semantic roles & 50–950 ramp

primary
#2C3D8A
secondary
#B4A45E
accent
#C14DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2C3D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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