#2C3F97#2C3F97

#2C3F97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.146 H 269.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2C3F97
RGBrgb(44, 63, 151)
HSLhsl(229, 55%, 38%)
HSVhsv(229, 71%, 59%)
CMYKcmyk(70.9%, 58.3%, 0%, 40.8%)
CIE-LABlab(30.22, 23.51, -50.53)
CIE-LCHlch(30.22, 55.73, 294.95°)
OKLaboklab(40.74% -0.0011 -0.1456)
OKLCHoklch(40.74% 0.146 269.6)
XYZxyz(8.4002, 6.3240, 30.0501)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3F97 #97842C
analogous
#2C7497 #2C3F97 #4E2C97
triadic
#2C3F97 #972C3F #3F972C
tetradic
#2C3F97 #972C74 #97842C #2C974E
square
#2C3F97 #972C74 #97842C #2C974E
split-complementary
#2C3F97 #974E2C #74972C
monochromatic
#101738 #1E2B68 #2C3F97 #3A53C6 #6A7DD4

Accessibility & contrast

On white

9.27
#2C3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2C3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3F97
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3F97#FFFFFF#000000##FFFFFF
##2C3F971.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c3f97;
/* rgb */ color: rgb(44, 63, 151);
/* oklch */ color: oklch(40.7% 0.146 269.6);
Tailwind
colors: {
  custom: {
    50: '#7373b6',
    500: '#2c3f97',
    950: '#000000',
  },
}
SCSS
$custom: #2c3f97;
$custom-light: #7373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3f97",
  "rgb": {
    "r": 44,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 229.346,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40739,
    "c": 0.14559,
    "h": 269.6
  },
  "luminance": 0.06325
}

Semantic roles & 50–950 ramp

primary
#2C3F97
secondary
#BAAB65
accent
#C44ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2C3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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