#2C3F8B#2C3F8B

#2C3F8B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.128 H 269.2°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2C3F8B
RGBrgb(44, 63, 139)
HSLhsl(228, 52%, 36%)
HSVhsv(228, 68%, 55%)
CMYKcmyk(68.3%, 54.7%, 0%, 45.5%)
CIE-LABlab(29.30, 18.98, -44.66)
CIE-LCHlch(29.30, 48.52, 293.02°)
OKLaboklab(39.76% -0.0017 -0.1283)
OKLCHoklch(39.76% 0.128 269.2)
XYZxyz(7.4748, 5.9539, 25.1764)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3F8B #8B782C
analogous
#2C6E8B #2C3F8B #482C8B
triadic
#2C3F8B #8B2C3F #3F8B2C
tetradic
#2C3F8B #8B2C6E #8B782C #2C8B48
square
#2C3F8B #8B2C6E #8B782C #2C8B48
split-complementary
#2C3F8B #8B482C #6E8B2C
monochromatic
#0F152E #1D2A5D #2C3F8B #3B54B9 #6479CE

Accessibility & contrast

On white

9.58
#2C3F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2C3F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3F8B
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3F8B#FFFFFF#000000##FFFFFF
##2C3F8B1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2c3f8b;
/* rgb */ color: rgb(44, 63, 139);
/* oklch */ color: oklch(39.8% 0.128 269.2);
Tailwind
colors: {
  custom: {
    50: '#7173ad',
    500: '#2c3f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2c3f8b;
$custom-light: #7173ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3f8b",
  "rgb": {
    "r": 44,
    "g": 63,
    "b": 139
  },
  "hsl": {
    "h": 228,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39758,
    "c": 0.12832,
    "h": 269.2
  },
  "luminance": 0.05955
}

Semantic roles & 50–950 ramp

primary
#2C3F8B
secondary
#B4A35F
accent
#BF4CDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C3F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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