#2F4C8B#2F4C8B

#2F4C8B is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.8% C 0.110 H 263.8°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2F4C8B
RGBrgb(47, 76, 139)
HSLhsl(221, 49%, 36%)
HSVhsv(221, 66%, 55%)
CMYKcmyk(66.2%, 45.3%, 0%, 45.5%)
CIE-LABlab(33.21, 10.72, -38.35)
CIE-LCHlch(33.21, 39.82, 285.62°)
OKLaboklab(42.79% -0.0119 -0.1095)
OKLCHoklch(42.79% 0.11 263.8)
XYZxyz(8.4153, 7.6365, 25.4516)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C8B #8B6E2F
analogous
#2F7A8B #2F4C8B #402F8B
triadic
#2F4C8B #8B2F4C #4C8B2F
tetradic
#2F4C8B #8B2F7A #8B6E2F #2F8B40
square
#2F4C8B #8B2F7A #8B6E2F #2F8B40
split-complementary
#2F4C8B #8B402F #7A8B2F
monochromatic
#101A30 #20335D #2F4C8B #3E65B9 #6888CC

Accessibility & contrast

On white

8.31
#2F4C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F4C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C8B
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C8B#FFFFFF#000000##FFFFFF
##2F4C8B1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E538D
Deuteranopia (green-blind)
#1F4A8A
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4c8b;
/* rgb */ color: rgb(47, 76, 139);
/* oklch */ color: oklch(42.8% 0.110 263.8);
Tailwind
colors: {
  custom: {
    50: '#727dad',
    500: '#2f4c8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c8b;
$custom-light: #727dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c8b",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 221.087,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42786,
    "c": 0.11014,
    "h": 263.8
  },
  "luminance": 0.07637
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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