#2F4682#2F4682

#2F4682 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.105 H 266.1°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#2F4682
RGBrgb(47, 70, 130)
HSLhsl(223, 47%, 35%)
HSVhsv(223, 64%, 51%)
CMYKcmyk(63.8%, 46.2%, 0%, 49%)
CIE-LABlab(30.87, 11.39, -36.55)
CIE-LCHlch(30.87, 38.28, 287.31°)
OKLaboklab(40.8% -0.0071 -0.1043)
OKLCHoklch(40.8% 0.105 266.1)
XYZxyz(7.3903, 6.5957, 21.9984)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4682 #826B2F
analogous
#2F7082 #2F4682 #412F82
triadic
#2F4682 #822F46 #46822F
tetradic
#2F4682 #822F70 #826B2F #2F8241
square
#2F4682 #822F70 #826B2F #2F8241
split-complementary
#2F4682 #82412F #70822F
monochromatic
#0E1628 #1F2E55 #2F4682 #3F5EAF #6480C7

Accessibility & contrast

On white

9.05
#2F4682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F4682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4682
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4682#FFFFFF#000000##FFFFFF
##2F46821.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4D84
Deuteranopia (green-blind)
#1D4581
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4682;
/* rgb */ color: rgb(47, 70, 130);
/* oklch */ color: oklch(40.8% 0.105 266.1);
Tailwind
colors: {
  custom: {
    50: '#7079a7',
    500: '#2f4682',
    950: '#000000',
  },
}
SCSS
$custom: #2f4682;
$custom-light: #7079a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4682",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 130
  },
  "hsl": {
    "h": 223.373,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40801,
    "c": 0.10453,
    "h": 266.1
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#2F4682
secondary
#AE985F
accent
#B251D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4682

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

Preview Lab → · Contrast checker → · Palette generator →

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