#2F4C7E#2F4C7E

#2F4C7E is a dark, moderate blue. Relative luminance 0.073; OKLCH L 41.9% C 0.091 H 260.6°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2F4C7E
RGBrgb(47, 76, 126)
HSLhsl(218, 46%, 34%)
HSVhsv(218, 63%, 49%)
CMYKcmyk(62.7%, 39.7%, 0%, 50.6%)
CIE-LABlab(32.43, 5.90, -31.57)
CIE-LCHlch(32.43, 32.12, 280.58°)
OKLaboklab(41.93% -0.0148 -0.0896)
OKLCHoklch(41.93% 0.091 260.6)
XYZxyz(7.5213, 7.2789, 20.7432)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C7E #7E612F
analogous
#2F747E #2F4C7E #3A2F7E
triadic
#2F4C7E #7E2F4C #4C7E2F
tetradic
#2F4C7E #7E2F74 #7E612F #2F7E3A
square
#2F4C7E #7E2F74 #7E612F #2F7E3A
split-complementary
#2F4C7E #7E3A2F #747E2F
monochromatic
#0E1625 #1E3151 #2F4C7E #4067AB #6387C5

Accessibility & contrast

On white

8.55
#2F4C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F4C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C7E
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C7E#FFFFFF#000000##FFFFFF
##2F4C7E1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375080
Deuteranopia (green-blind)
#2C497D
Tritanopia (blue-blind)
#00575F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4c7e;
/* rgb */ color: rgb(47, 76, 126);
/* oklch */ color: oklch(41.9% 0.091 260.6);
Tailwind
colors: {
  custom: {
    50: '#6f7da3',
    500: '#2f4c7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c7e;
$custom-light: #6f7da3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c7e",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 126
  },
  "hsl": {
    "h": 217.975,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4193,
    "c": 0.09083,
    "h": 260.6
  },
  "luminance": 0.0728
}

Semantic roles & 50–950 ramp

primary
#2F4C7E
secondary
#AC8F5D
accent
#A552D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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