#2F4288#2F4288

#2F4288 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.3% C 0.119 H 269.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2F4288
RGBrgb(47, 66, 136)
HSLhsl(227, 49%, 36%)
HSVhsv(227, 65%, 53%)
CMYKcmyk(65.4%, 51.5%, 0%, 46.7%)
CIE-LABlab(30.10, 16.34, -41.49)
CIE-LCHlch(30.10, 44.60, 291.49°)
OKLaboklab(40.35% -0.0019 -0.1189)
OKLCHoklch(40.35% 0.119 269.1)
XYZxyz(7.5629, 6.2777, 24.1009)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4288 #88752F
analogous
#2F6E88 #2F4288 #482F88
triadic
#2F4288 #882F42 #42882F
tetradic
#2F4288 #882F6E #88752F #2F8848
square
#2F4288 #882F6E #88752F #2F8848
split-complementary
#2F4288 #88482F #6E882F
monochromatic
#10162D #1F2C5B #2F4288 #3F58B5 #677CCA

Accessibility & contrast

On white

9.31
#2F4288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F4288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4288
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4288#FFFFFF#000000##FFFFFF
##2F42881.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4B8B
Deuteranopia (green-blind)
#044387
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4288;
/* rgb */ color: rgb(47, 66, 136);
/* oklch */ color: oklch(40.3% 0.119 269.1);
Tailwind
colors: {
  custom: {
    50: '#7176ab',
    500: '#2f4288',
    950: '#000000',
  },
}
SCSS
$custom: #2f4288;
$custom-light: #7176ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4288",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 136
  },
  "hsl": {
    "h": 227.191,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40345,
    "c": 0.1189,
    "h": 269.1
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#2F4288
secondary
#B1A061
accent
#BB50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4288

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

Preview Lab → · Contrast checker → · Palette generator →

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