#2C398F#2C398F

#2C398F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.142 H 271.6°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2C398F
RGBrgb(44, 57, 143)
HSLhsl(232, 53%, 37%)
HSVhsv(232, 69%, 56%)
CMYKcmyk(69.2%, 60.1%, 0%, 43.9%)
CIE-LABlab(27.96, 24.56, -49.29)
CIE-LCHlch(27.96, 55.07, 296.48°)
OKLaboklab(38.86% 0.0039 -0.142)
OKLCHoklch(38.86% 0.142 271.6)
XYZxyz(7.4581, 5.4442, 26.6391)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C398F #8F822C
analogous
#2C6B8F #2C398F #512C8F
triadic
#2C398F #8F2C39 #398F2C
tetradic
#2C398F #8F2C6B #8F822C #2C8F51
square
#2C398F #8F2C6B #8F822C #2C8F51
split-complementary
#2C398F #8F512C #6B8F2C
monochromatic
#0F1431 #1E2660 #2C398F #3A4CBE #6674D0

Accessibility & contrast

On white

10.05
#2C398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2C398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C398F
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C398F#FFFFFF#000000##FFFFFF
##2C398F1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c398f;
/* rgb */ color: rgb(44, 57, 143);
/* oklch */ color: oklch(38.9% 0.142 271.6);
Tailwind
colors: {
  custom: {
    50: '#726fb0',
    500: '#2c398f',
    950: '#000000',
  },
}
SCSS
$custom: #2c398f;
$custom-light: #726fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c398f",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 232.121,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38859,
    "c": 0.14205,
    "h": 271.6
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#2C398F
secondary
#B6AB61
accent
#C94BDC
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2C398F

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

Preview Lab → · Contrast checker → · Palette generator →

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