#2C3A8A#2C3A8A

#2C3A8A is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.134 H 271.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#2C3A8A
RGBrgb(44, 58, 138)
HSLhsl(231, 52%, 36%)
HSVhsv(231, 68%, 54%)
CMYKcmyk(68.1%, 58%, 0%, 45.9%)
CIE-LABlab(27.83, 22.01, -46.41)
CIE-LCHlch(27.83, 51.36, 295.37°)
OKLaboklab(38.64% 0.0029 -0.1335)
OKLCHoklch(38.64% 0.134 271.2)
XYZxyz(7.1377, 5.3959, 24.7052)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3A8A #8A7C2C
analogous
#2C698A #2C3A8A #4D2C8A
triadic
#2C3A8A #8A2C3A #3A8A2C
tetradic
#2C3A8A #8A2C69 #8A7C2C #2C8A4D
square
#2C3A8A #8A2C69 #8A7C2C #2C8A4D
split-complementary
#2C3A8A #8A4D2C #698A2C
monochromatic
#0E132D #1D265C #2C3A8A #3B4EB8 #6373CD

Accessibility & contrast

On white

10.10
#2C3A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2C3A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3A8A
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3A8A#FFFFFF#000000##FFFFFF
##2C3A8A1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c3a8a;
/* rgb */ color: rgb(44, 58, 138);
/* oklch */ color: oklch(38.6% 0.134 271.2);
Tailwind
colors: {
  custom: {
    50: '#7170ad',
    500: '#2c3a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c3a8a;
$custom-light: #7170ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3a8a",
  "rgb": {
    "r": 44,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 231.064,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38636,
    "c": 0.13356,
    "h": 271.2
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#2C3A8A
secondary
#B4A75E
accent
#C64DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2C3A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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