#2C398A#2C398A

#2C398A is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.135 H 271.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#2C398A
RGBrgb(44, 57, 138)
HSLhsl(232, 52%, 36%)
HSVhsv(232, 68%, 54%)
CMYKcmyk(68.1%, 58.7%, 0%, 45.9%)
CIE-LABlab(27.56, 22.69, -46.85)
CIE-LCHlch(27.56, 52.05, 295.84°)
OKLaboklab(38.43% 0.0038 -0.1348)
OKLCHoklch(38.43% 0.135 271.6)
XYZxyz(7.0877, 5.2961, 24.6886)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C398A #8A7D2C
analogous
#2C688A #2C398A #4E2C8A
triadic
#2C398A #8A2C39 #398A2C
tetradic
#2C398A #8A2C68 #8A7D2C #2C8A4E
square
#2C398A #8A2C68 #8A7D2C #2C8A4E
split-complementary
#2C398A #8A4E2C #688A2C
monochromatic
#0E132D #1D265C #2C398A #3B4CB8 #6372CD

Accessibility & contrast

On white

10.20
#2C398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2C398A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C398A
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C398A#FFFFFF#000000##FFFFFF
##2C398A1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c398a;
/* rgb */ color: rgb(44, 57, 138);
/* oklch */ color: oklch(38.4% 0.135 271.6);
Tailwind
colors: {
  custom: {
    50: '#716fad',
    500: '#2c398a',
    950: '#000000',
  },
}
SCSS
$custom: #2c398a;
$custom-light: #716fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c398a",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 231.702,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38433,
    "c": 0.13489,
    "h": 271.6
  },
  "luminance": 0.05297
}

Semantic roles & 50–950 ramp

primary
#2C398A
secondary
#B4A85E
accent
#C74DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2C398A

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

Preview Lab → · Contrast checker → · Palette generator →

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