#2C3DAB#2C3DAB

#2C3DAB is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.176 H 270.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2C3DAB
RGBrgb(44, 61, 171)
HSLhsl(232, 59%, 42%)
HSVhsv(232, 74%, 67%)
CMYKcmyk(74.3%, 64.3%, 0%, 32.9%)
CIE-LABlab(31.38, 32.27, -60.72)
CIE-LCHlch(31.38, 68.77, 297.99°)
OKLaboklab(42.12% 0.0002 -0.1755)
OKLCHoklch(42.12% 0.176 270.1)
XYZxyz(10.0556, 6.8122, 39.3051)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3DAB #AB9A2C
analogous
#2C7CAB #2C3DAB #5B2CAB
triadic
#2C3DAB #AB2C3D #3DAB2C
tetradic
#2C3DAB #AB2C7C #AB9A2C #2CAB5B
square
#2C3DAB #AB2C7C #AB9A2C #2CAB5B
split-complementary
#2C3DAB #AB5B2C #7CAB2C
monochromatic
#131A4A #1F2C7A #2C3DAB #4558CF #7683DC

Accessibility & contrast

On white

8.89
#2C3DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2C3DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3DAB
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3DAB#FFFFFF#000000##FFFFFF
##2C3DAB1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c3dab;
/* rgb */ color: rgb(44, 61, 171);
/* oklch */ color: oklch(42.1% 0.176 270.1);
Tailwind
colors: {
  custom: {
    50: '#7872c5',
    500: '#2c3dab',
    950: '#000000',
  },
}
SCSS
$custom: #2c3dab;
$custom-light: #7872c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3dab",
  "rgb": {
    "r": 44,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 231.969,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.17552,
    "h": 270.1
  },
  "luminance": 0.06813
}

Semantic roles & 50–950 ramp

primary
#2C3DAB
secondary
#C3B86F
accent
#CD46E2
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C3DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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