#2F4271#2F4271

#2F4271 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.7% C 0.084 H 266.0°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2F4271
RGBrgb(47, 66, 113)
HSLhsl(223, 41%, 31%)
HSVhsv(223, 58%, 44%)
CMYKcmyk(58.4%, 41.6%, 0%, 55.7%)
CIE-LABlab(28.62, 7.85, -29.47)
CIE-LCHlch(28.62, 30.50, 284.91°)
OKLaboklab(38.74% -0.0058 -0.0836)
OKLCHoklch(38.74% 0.084 266)
XYZxyz(6.1001, 5.6926, 16.3969)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4271 #715E2F
analogous
#2F6371 #2F4271 #3D2F71
triadic
#2F4271 #712F42 #42712F
tetradic
#2F4271 #712F63 #715E2F #2F713D
square
#2F4271 #712F63 #715E2F #2F713D
split-complementary
#2F4271 #713D2F #63712F
monochromatic
#0B101B #1D2946 #2F4271 #415B9C #5E79BC

Accessibility & contrast

On white

9.82
#2F4271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F4271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4271
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4271#FFFFFF#000000##FFFFFF
##2F42711.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4773
Deuteranopia (green-blind)
#264170
Tritanopia (blue-blind)
#074C54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f4271;
/* rgb */ color: rgb(47, 66, 113);
/* oklch */ color: oklch(38.7% 0.084 266.0);
Tailwind
colors: {
  custom: {
    50: '#6d769a',
    500: '#2f4271',
    950: '#000000',
  },
}
SCSS
$custom: #2f4271;
$custom-light: #6d769a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4271",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 222.727,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38736,
    "c": 0.08377,
    "h": 266
  },
  "luminance": 0.05693
}

Semantic roles & 50–950 ramp

primary
#2F4271
secondary
#A28D5A
accent
#AE57D1
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2F4271

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

Preview Lab → · Contrast checker → · Palette generator →

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