#2F4184#2F4184

#2F4184 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.8% C 0.114 H 269.3°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#2F4184
RGBrgb(47, 65, 132)
HSLhsl(227, 47%, 35%)
HSVhsv(227, 64%, 52%)
CMYKcmyk(64.4%, 50.8%, 0%, 48.2%)
CIE-LABlab(29.54, 15.53, -39.92)
CIE-LCHlch(29.54, 42.84, 291.25°)
OKLaboklab(39.83% -0.0013 -0.1143)
OKLCHoklch(39.83% 0.114 269.3)
XYZxyz(7.2260, 6.0503, 22.6123)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4184 #84722F
analogous
#2F6C84 #2F4184 #472F84
triadic
#2F4184 #842F41 #41842F
tetradic
#2F4184 #842F6C #84722F #2F8447
square
#2F4184 #842F6C #84722F #2F8447
split-complementary
#2F4184 #84472F #6C842F
monochromatic
#0F152A #1F2B57 #2F4184 #3F57B1 #657AC8

Accessibility & contrast

On white

9.50
#2F4184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F4184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4184
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4184#FFFFFF#000000##FFFFFF
##2F41841.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4A86
Deuteranopia (green-blind)
#0B4283
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4184;
/* rgb */ color: rgb(47, 65, 132);
/* oklch */ color: oklch(39.8% 0.114 269.3);
Tailwind
colors: {
  custom: {
    50: '#7175a8',
    500: '#2f4184',
    950: '#000000',
  },
}
SCSS
$custom: #2f4184;
$custom-light: #7175a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4184",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 132
  },
  "hsl": {
    "h": 227.294,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39829,
    "c": 0.11429,
    "h": 269.3
  },
  "luminance": 0.06051
}

Semantic roles & 50–950 ramp

primary
#2F4184
secondary
#AF9E60
accent
#BB51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4184

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

Preview Lab → · Contrast checker → · Palette generator →

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