#2F4687#2F4687

#2F4687 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.2% C 0.112 H 266.8°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#2F4687
RGBrgb(47, 70, 135)
HSLhsl(224, 48%, 36%)
HSVhsv(224, 65%, 53%)
CMYKcmyk(65.2%, 48.1%, 0%, 47.1%)
CIE-LABlab(31.19, 13.26, -39.13)
CIE-LCHlch(31.19, 41.31, 288.72°)
OKLaboklab(41.15% -0.0062 -0.1119)
OKLCHoklch(41.15% 0.112 266.8)
XYZxyz(7.7341, 6.7332, 23.8090)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4687 #87702F
analogous
#2F7287 #2F4687 #442F87
triadic
#2F4687 #872F46 #46872F
tetradic
#2F4687 #872F72 #87702F #2F8744
square
#2F4687 #872F72 #87702F #2F8744
split-complementary
#2F4687 #87442F #72872F
monochromatic
#0F172C #1F2E5A #2F4687 #3F5EB4 #6680CA

Accessibility & contrast

On white

8.95
#2F4687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F4687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4687
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4687#FFFFFF#000000##FFFFFF
##2F46871.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264E89
Deuteranopia (green-blind)
#164686
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4687;
/* rgb */ color: rgb(47, 70, 135);
/* oklch */ color: oklch(41.2% 0.112 266.8);
Tailwind
colors: {
  custom: {
    50: '#7179aa',
    500: '#2f4687',
    950: '#000000',
  },
}
SCSS
$custom: #2f4687;
$custom-light: #7179aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4687",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 135
  },
  "hsl": {
    "h": 224.318,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41153,
    "c": 0.11203,
    "h": 266.8
  },
  "luminance": 0.06734
}

Semantic roles & 50–950 ramp

primary
#2F4687
secondary
#B19C61
accent
#B450D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4687

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

Preview Lab → · Contrast checker → · Palette generator →

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