#2F4A89#2F4A89

#2F4A89 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.2% C 0.110 H 264.7°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2F4A89
RGBrgb(47, 74, 137)
HSLhsl(222, 49%, 36%)
HSVhsv(222, 66%, 54%)
CMYKcmyk(65.7%, 46%, 0%, 46.3%)
CIE-LABlab(32.50, 11.31, -38.27)
CIE-LCHlch(32.50, 39.91, 286.47°)
OKLaboklab(42.19% -0.0102 -0.1093)
OKLCHoklch(42.19% 0.11 264.7)
XYZxyz(8.1349, 7.3073, 24.6438)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A89 #896E2F
analogous
#2F7789 #2F4A89 #412F89
triadic
#2F4A89 #892F4A #4A892F
tetradic
#2F4A89 #892F77 #896E2F #2F8941
square
#2F4A89 #892F77 #896E2F #2F8941
split-complementary
#2F4A89 #89412F #77892F
monochromatic
#10192E #1F315B #2F4A89 #3F63B7 #6785CB

Accessibility & contrast

On white

8.53
#2F4A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4A89
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A89#FFFFFF#000000##FFFFFF
##2F4A891.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C518B
Deuteranopia (green-blind)
#1D4988
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4a89;
/* rgb */ color: rgb(47, 74, 137);
/* oklch */ color: oklch(42.2% 0.110 264.7);
Tailwind
colors: {
  custom: {
    50: '#717cac',
    500: '#2f4a89',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a89;
$custom-light: #717cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a89",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 137
  },
  "hsl": {
    "h": 222,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42194,
    "c": 0.10975,
    "h": 264.7
  },
  "luminance": 0.07308
}

Semantic roles & 50–950 ramp

primary
#2F4A89
secondary
#B29A62
accent
#AF4FD8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4A89

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

Preview Lab → · Contrast checker → · Palette generator →

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