#2F4B8A#2F4B8A

#2F4B8A is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.5% C 0.110 H 264.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2F4B8A
RGBrgb(47, 75, 138)
HSLhsl(222, 49%, 36%)
HSVhsv(222, 66%, 54%)
CMYKcmyk(65.9%, 45.7%, 0%, 45.9%)
CIE-LABlab(32.86, 11.01, -38.31)
CIE-LCHlch(32.86, 39.86, 286.04°)
OKLaboklab(42.49% -0.0111 -0.1094)
OKLCHoklch(42.49% 0.11 264.2)
XYZxyz(8.2742, 7.4707, 25.0458)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B8A #8A6E2F
analogous
#2F798A #2F4B8A #412F8A
triadic
#2F4B8A #8A2F4B #4B8A2F
tetradic
#2F4B8A #8A2F79 #8A6E2F #2F8A41
square
#2F4B8A #8A2F79 #8A6E2F #2F8A41
split-complementary
#2F4B8A #8A412F #798A2F
monochromatic
#10192F #1F325C #2F4B8A #3F64B8 #6887CC

Accessibility & contrast

On white

8.42
#2F4B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2F4B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B8A
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B8A#FFFFFF#000000##FFFFFF
##2F4B8A1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D528C
Deuteranopia (green-blind)
#1E4989
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4b8a;
/* rgb */ color: rgb(47, 75, 138);
/* oklch */ color: oklch(42.5% 0.110 264.2);
Tailwind
colors: {
  custom: {
    50: '#717cac',
    500: '#2f4b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b8a;
$custom-light: #717cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b8a",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 138
  },
  "hsl": {
    "h": 221.538,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4249,
    "c": 0.10995,
    "h": 264.2
  },
  "luminance": 0.07471
}

Semantic roles & 50–950 ramp

primary
#2F4B8A
secondary
#B39A62
accent
#AE4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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