#2F4080#2F4080

#2F4080 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.110 H 269.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2F4080
RGBrgb(47, 64, 128)
HSLhsl(227, 46%, 34%)
HSVhsv(227, 63%, 50%)
CMYKcmyk(63.3%, 50%, 0%, 49.8%)
CIE-LABlab(28.98, 14.72, -38.33)
CIE-LCHlch(28.98, 41.06, 291.01°)
OKLaboklab(39.31% -0.0007 -0.1096)
OKLCHoklch(39.31% 0.11 269.6)
XYZxyz(6.9007, 5.8291, 21.1794)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4080 #806F2F
analogous
#2F6980 #2F4080 #462F80
triadic
#2F4080 #802F40 #40802F
tetradic
#2F4080 #802F69 #806F2F #2F8046
square
#2F4080 #802F69 #806F2F #2F8046
split-complementary
#2F4080 #80462F #69802F
monochromatic
#0E1326 #1F2A53 #2F4080 #3F56AD #6378C6

Accessibility & contrast

On white

9.70
#2F4080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F4080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4080
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4080#FFFFFF#000000##FFFFFF
##2F40801.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204882
Deuteranopia (green-blind)
#10417F
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f4080;
/* rgb */ color: rgb(47, 64, 128);
/* oklch */ color: oklch(39.3% 0.110 269.6);
Tailwind
colors: {
  custom: {
    50: '#7074a5',
    500: '#2f4080',
    950: '#000000',
  },
}
SCSS
$custom: #2f4080;
$custom-light: #7074a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4080",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 128
  },
  "hsl": {
    "h": 227.407,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39314,
    "c": 0.10962,
    "h": 269.6
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

primary
#2F4080
secondary
#AD9C5E
accent
#BA52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F4080

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

Preview Lab → · Contrast checker → · Palette generator →

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