#2C4198#2C4198

#2C4198 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.144 H 268.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2C4198
RGBrgb(44, 65, 152)
HSLhsl(228, 55%, 38%)
HSVhsv(228, 71%, 60%)
CMYKcmyk(71.1%, 57.2%, 0%, 40.4%)
CIE-LABlab(30.84, 22.54, -50.13)
CIE-LCHlch(30.84, 54.97, 294.21°)
OKLaboklab(41.23% -0.0027 -0.1444)
OKLCHoklch(41.23% 0.144 268.9)
XYZxyz(8.5946, 6.5822, 30.5172)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4198 #98832C
analogous
#2C7798 #2C4198 #4D2C98
triadic
#2C4198 #982C41 #41982C
tetradic
#2C4198 #982C77 #98832C #2C984D
square
#2C4198 #982C77 #98832C #2C984D
split-complementary
#2C4198 #984D2C #77982C
monochromatic
#111839 #1E2D69 #2C4198 #3B56C6 #6A7FD4

Accessibility & contrast

On white

9.07
#2C4198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2C4198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4198
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4198#FFFFFF#000000##FFFFFF
##2C41981.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c4198;
/* rgb */ color: rgb(44, 65, 152);
/* oklch */ color: oklch(41.2% 0.144 268.9);
Tailwind
colors: {
  custom: {
    50: '#7475b7',
    500: '#2c4198',
    950: '#000000',
  },
}
SCSS
$custom: #2c4198;
$custom-light: #7475b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4198",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 152
  },
  "hsl": {
    "h": 228.333,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41228,
    "c": 0.14442,
    "h": 268.9
  },
  "luminance": 0.06583
}

Semantic roles & 50–950 ramp

primary
#2C4198
secondary
#BBAA65
accent
#C149DE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2C4198

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

Preview Lab → · Contrast checker → · Palette generator →

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