#2C3C98#2C3C98

#2C3C98 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.151 H 270.5°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2C3C98
RGBrgb(44, 60, 152)
HSLhsl(231, 55%, 38%)
HSVhsv(231, 71%, 60%)
CMYKcmyk(71.1%, 60.5%, 0%, 40.4%)
CIE-LABlab(29.50, 25.90, -52.31)
CIE-LCHlch(29.50, 58.37, 296.34°)
OKLaboklab(40.23% 0.0014 -0.1509)
OKLCHoklch(40.23% 0.151 270.5)
XYZxyz(8.3201, 6.0334, 30.4258)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3C98 #98882C
analogous
#2C7298 #2C3C98 #522C98
triadic
#2C3C98 #982C3C #3C982C
tetradic
#2C3C98 #982C72 #98882C #2C9852
square
#2C3C98 #982C72 #98882C #2C9852
split-complementary
#2C3C98 #98522C #72982C
monochromatic
#111739 #1E2969 #2C3C98 #3B50C6 #6A7AD4

Accessibility & contrast

On white

9.52
#2C3C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2C3C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3C98
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3C98#FFFFFF#000000##FFFFFF
##2C3C981.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2c3c98;
/* rgb */ color: rgb(44, 60, 152);
/* oklch */ color: oklch(40.2% 0.151 270.5);
Tailwind
colors: {
  custom: {
    50: '#7471b7',
    500: '#2c3c98',
    950: '#000000',
  },
}
SCSS
$custom: #2c3c98;
$custom-light: #7471b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3c98",
  "rgb": {
    "r": 44,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 231.111,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40228,
    "c": 0.15086,
    "h": 270.5
  },
  "luminance": 0.06034
}

Semantic roles & 50–950 ramp

primary
#2C3C98
secondary
#BBAE65
accent
#C849DE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2C3C98

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

Preview Lab → · Contrast checker → · Palette generator →

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