#2C4097#2C4097

#2C4097 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.144 H 269.2°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2C4097
RGBrgb(44, 64, 151)
HSLhsl(229, 55%, 38%)
HSVhsv(229, 71%, 59%)
CMYKcmyk(70.9%, 57.6%, 0%, 40.8%)
CIE-LABlab(30.49, 22.84, -50.09)
CIE-LCHlch(30.49, 55.05, 294.51°)
OKLaboklab(40.94% -0.0019 -0.1443)
OKLCHoklch(40.94% 0.144 269.2)
XYZxyz(8.4561, 6.4358, 30.0687)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4097 #97832C
analogous
#2C7597 #2C4097 #4D2C97
triadic
#2C4097 #972C40 #40972C
tetradic
#2C4097 #972C75 #97832C #2C974D
square
#2C4097 #972C75 #97832C #2C974D
split-complementary
#2C4097 #974D2C #75972C
monochromatic
#101838 #1E2C68 #2C4097 #3A54C6 #6A7ED4

Accessibility & contrast

On white

9.18
#2C4097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2C4097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4097
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4097#FFFFFF#000000##FFFFFF
##2C40971.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2c4097;
/* rgb */ color: rgb(44, 64, 151);
/* oklch */ color: oklch(40.9% 0.144 269.2);
Tailwind
colors: {
  custom: {
    50: '#7374b6',
    500: '#2c4097',
    950: '#000000',
  },
}
SCSS
$custom: #2c4097;
$custom-light: #7374b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4097",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 228.785,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40942,
    "c": 0.14429,
    "h": 269.2
  },
  "luminance": 0.06437
}

Semantic roles & 50–950 ramp

primary
#2C4097
secondary
#BAAA65
accent
#C24ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2C4097

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

Preview Lab → · Contrast checker → · Palette generator →

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