#2F4C8A#2F4C8A

#2F4C8A is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.109 H 263.6°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#2F4C8A
RGBrgb(47, 76, 138)
HSLhsl(221, 49%, 36%)
HSVhsv(221, 66%, 54%)
CMYKcmyk(65.9%, 44.9%, 0%, 45.9%)
CIE-LABlab(33.15, 10.35, -37.84)
CIE-LCHlch(33.15, 39.23, 285.29°)
OKLaboklab(42.72% -0.0121 -0.108)
OKLCHoklch(42.72% 0.109 263.6)
XYZxyz(8.3426, 7.6074, 25.0686)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C8A #8A6D2F
analogous
#2F7A8A #2F4C8A #402F8A
triadic
#2F4C8A #8A2F4C #4C8A2F
tetradic
#2F4C8A #8A2F7A #8A6D2F #2F8A40
square
#2F4C8A #8A2F7A #8A6D2F #2F8A40
split-complementary
#2F4C8A #8A402F #7A8A2F
monochromatic
#101A2F #1F335C #2F4C8A #3F65B8 #6888CC

Accessibility & contrast

On white

8.33
#2F4C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F4C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C8A
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C8A#FFFFFF#000000##FFFFFF
##2F4C8A1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F528C
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4c8a;
/* rgb */ color: rgb(47, 76, 138);
/* oklch */ color: oklch(42.7% 0.109 263.6);
Tailwind
colors: {
  custom: {
    50: '#717dac',
    500: '#2f4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c8a;
$custom-light: #717dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c8a",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 220.879,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42718,
    "c": 0.10866,
    "h": 263.6
  },
  "luminance": 0.07608
}

Semantic roles & 50–950 ramp

primary
#2F4C8A
secondary
#B39962
accent
#AD4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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