#2F4284#2F4284

#2F4284 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.0% C 0.113 H 268.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2F4284
RGBrgb(47, 66, 132)
HSLhsl(227, 47%, 35%)
HSVhsv(227, 64%, 52%)
CMYKcmyk(64.4%, 50%, 0%, 48.2%)
CIE-LABlab(29.83, 14.85, -39.46)
CIE-LCHlch(29.83, 42.16, 290.62°)
OKLaboklab(40.05% -0.0024 -0.1129)
OKLCHoklch(40.05% 0.113 268.8)
XYZxyz(7.2840, 6.1661, 22.6316)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4284 #84712F
analogous
#2F6D84 #2F4284 #462F84
triadic
#2F4284 #842F42 #42842F
tetradic
#2F4284 #842F6D #84712F #2F8446
square
#2F4284 #842F6D #84712F #2F8446
split-complementary
#2F4284 #84462F #6D842F
monochromatic
#0F152A #1F2B57 #2F4284 #3F59B1 #657BC8

Accessibility & contrast

On white

9.40
#2F4284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F4284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4284
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4284#FFFFFF#000000##FFFFFF
##2F42841.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204A86
Deuteranopia (green-blind)
#0F4383
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4284;
/* rgb */ color: rgb(47, 66, 132);
/* oklch */ color: oklch(40.0% 0.113 268.8);
Tailwind
colors: {
  custom: {
    50: '#7176a8',
    500: '#2f4284',
    950: '#000000',
  },
}
SCSS
$custom: #2f4284;
$custom-light: #7176a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4284",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 132
  },
  "hsl": {
    "h": 226.588,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40048,
    "c": 0.11293,
    "h": 268.8
  },
  "luminance": 0.06167
}

Semantic roles & 50–950 ramp

primary
#2F4284
secondary
#AF9D60
accent
#B951D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4284

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

Preview Lab → · Contrast checker → · Palette generator →

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