#2F4471#2F4471

#2F4471 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.2% C 0.081 H 264.1°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2F4471
RGBrgb(47, 68, 113)
HSLhsl(221, 41%, 31%)
HSVhsv(221, 58%, 44%)
CMYKcmyk(58.4%, 39.8%, 0%, 55.7%)
CIE-LABlab(29.24, 6.50, -28.50)
CIE-LCHlch(29.24, 29.23, 282.84°)
OKLaboklab(39.21% -0.0083 -0.0807)
OKLCHoklch(39.21% 0.081 264.1)
XYZxyz(6.2190, 5.9304, 16.4365)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4471 #715C2F
analogous
#2F6571 #2F4471 #3B2F71
triadic
#2F4471 #712F44 #44712F
tetradic
#2F4471 #712F65 #715C2F #2F713B
square
#2F4471 #712F65 #715C2F #2F713B
split-complementary
#2F4471 #713B2F #65712F
monochromatic
#0B101B #1D2A46 #2F4471 #415E9C #5E7CBC

Accessibility & contrast

On white

9.61
#2F4471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F4471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4471
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4471#FFFFFF#000000##FFFFFF
##2F44711.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324873
Deuteranopia (green-blind)
#294270
Tritanopia (blue-blind)
#064E55
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4471;
/* rgb */ color: rgb(47, 68, 113);
/* oklch */ color: oklch(39.2% 0.081 264.1);
Tailwind
colors: {
  custom: {
    50: '#6d779a',
    500: '#2f4471',
    950: '#000000',
  },
}
SCSS
$custom: #2f4471;
$custom-light: #6d779a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4471",
  "rgb": {
    "r": 47,
    "g": 68,
    "b": 113
  },
  "hsl": {
    "h": 220.909,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39209,
    "c": 0.08114,
    "h": 264.1
  },
  "luminance": 0.05931
}

Semantic roles & 50–950 ramp

primary
#2F4471
secondary
#A28B5A
accent
#AA57D1
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2F4471

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

Preview Lab → · Contrast checker → · Palette generator →

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