#2C3A7D#2C3A7D

#2C3A7D is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.6% C 0.114 H 271.0°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2C3A7D
RGBrgb(44, 58, 125)
HSLhsl(230, 48%, 33%)
HSVhsv(230, 65%, 49%)
CMYKcmyk(64.8%, 53.6%, 0%, 51%)
CIE-LABlab(26.85, 17.13, -39.88)
CIE-LCHlch(26.85, 43.40, 293.24°)
OKLaboklab(37.59% 0.0021 -0.1143)
OKLCHoklch(37.59% 0.114 271)
XYZxyz(6.2522, 5.0417, 20.0417)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3A7D #7D6F2C
analogous
#2C627D #2C3A7D #462C7D
triadic
#2C3A7D #7D2C3A #3A7D2C
tetradic
#2C3A7D #7D2C62 #7D6F2C #2C7D46
square
#2C3A7D #7D2C62 #7D6F2C #2C7D46
split-complementary
#2C3A7D #7D462C #627D2C
monochromatic
#0C1022 #1C2550 #2C3A7D #3C4FAA #5D6FC6

Accessibility & contrast

On white

10.46
#2C3A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2C3A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3A7D
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3A7D#FFFFFF#000000##FFFFFF
##2C3A7D1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13437F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c3a7d;
/* rgb */ color: rgb(44, 58, 125);
/* oklch */ color: oklch(37.6% 0.114 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e6fa3',
    500: '#2c3a7d',
    950: '#000000',
  },
}
SCSS
$custom: #2c3a7d;
$custom-light: #6e6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3a7d",
  "rgb": {
    "r": 44,
    "g": 58,
    "b": 125
  },
  "hsl": {
    "h": 229.63,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37588,
    "c": 0.11435,
    "h": 271
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#2C3A7D
secondary
#AC9E59
accent
#C050D8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2C3A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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