#2F4071#2F4071

#2F4071 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.086 H 267.8°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2F4071
RGBrgb(47, 64, 113)
HSLhsl(225, 41%, 31%)
HSVhsv(225, 58%, 44%)
CMYKcmyk(58.4%, 43.4%, 0%, 55.7%)
CIE-LABlab(28.01, 9.20, -30.43)
CIE-LCHlch(28.01, 31.80, 286.83°)
OKLaboklab(38.27% -0.0033 -0.0864)
OKLCHoklch(38.27% 0.086 267.8)
XYZxyz(5.9853, 5.4629, 16.3586)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4071 #71602F
analogous
#2F6171 #2F4071 #3F2F71
triadic
#2F4071 #712F40 #40712F
tetradic
#2F4071 #712F61 #71602F #2F713F
square
#2F4071 #712F61 #71602F #2F713F
split-complementary
#2F4071 #713F2F #61712F
monochromatic
#0B0F1B #1D2846 #2F4071 #41589C #5E76BC

Accessibility & contrast

On white

10.04
#2F4071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F4071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4071
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4071#FFFFFF#000000##FFFFFF
##2F40711.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4573
Deuteranopia (green-blind)
#233F70
Tritanopia (blue-blind)
#074B53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f4071;
/* rgb */ color: rgb(47, 64, 113);
/* oklch */ color: oklch(38.3% 0.086 267.8);
Tailwind
colors: {
  custom: {
    50: '#6d749a',
    500: '#2f4071',
    950: '#000000',
  },
}
SCSS
$custom: #2f4071;
$custom-light: #6d749a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4071",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 113
  },
  "hsl": {
    "h": 224.545,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38267,
    "c": 0.08648,
    "h": 267.8
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#2F4071
secondary
#A2905A
accent
#B257D1
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2F4071

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

Preview Lab → · Contrast checker → · Palette generator →

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