#2F4081#2F4081

#2F4081 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.111 H 269.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2F4081
RGBrgb(47, 64, 129)
HSLhsl(228, 47%, 35%)
HSVhsv(228, 64%, 51%)
CMYKcmyk(63.6%, 50.4%, 0%, 49.4%)
CIE-LABlab(29.04, 15.09, -38.85)
CIE-LCHlch(29.04, 41.68, 291.23°)
OKLaboklab(39.39% -0.0006 -0.1111)
OKLCHoklch(39.39% 0.111 269.7)
XYZxyz(6.9668, 5.8555, 21.5277)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4081 #81702F
analogous
#2F6981 #2F4081 #472F81
triadic
#2F4081 #812F40 #40812F
tetradic
#2F4081 #812F69 #81702F #2F8147
square
#2F4081 #812F69 #81702F #2F8147
split-complementary
#2F4081 #81472F #69812F
monochromatic
#0E1327 #1F2A54 #2F4081 #3F56AE #6478C6

Accessibility & contrast

On white

9.67
#2F4081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4081
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4081#FFFFFF#000000##FFFFFF
##2F40811.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4883
Deuteranopia (green-blind)
#0E4180
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f4081;
/* rgb */ color: rgb(47, 64, 129);
/* oklch */ color: oklch(39.4% 0.111 269.7);
Tailwind
colors: {
  custom: {
    50: '#7074a6',
    500: '#2f4081',
    950: '#000000',
  },
}
SCSS
$custom: #2f4081;
$custom-light: #7074a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4081",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 129
  },
  "hsl": {
    "h": 227.561,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39388,
    "c": 0.11113,
    "h": 269.7
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#2F4081
secondary
#AD9D5E
accent
#BB52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F4081

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

Preview Lab → · Contrast checker → · Palette generator →

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