#2F4186#2F4186

#2F4186 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.0% C 0.117 H 269.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2F4186
RGBrgb(47, 65, 134)
HSLhsl(228, 48%, 35%)
HSVhsv(228, 65%, 53%)
CMYKcmyk(64.9%, 51.5%, 0%, 47.5%)
CIE-LABlab(29.68, 16.27, -40.94)
CIE-LCHlch(29.68, 44.06, 291.68°)
OKLaboklab(39.98% -0.0011 -0.1173)
OKLCHoklch(39.98% 0.117 269.5)
XYZxyz(7.3642, 6.1055, 23.3400)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4186 #86742F
analogous
#2F6C86 #2F4186 #482F86
triadic
#2F4186 #862F41 #41862F
tetradic
#2F4186 #862F6C #86742F #2F8648
square
#2F4186 #862F6C #86742F #2F8648
split-complementary
#2F4186 #86482F #6C862F
monochromatic
#0F152B #1F2B59 #2F4186 #3F57B3 #667BC9

Accessibility & contrast

On white

9.45
#2F4186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F4186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4186
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4186#FFFFFF#000000##FFFFFF
##2F41861.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4A88
Deuteranopia (green-blind)
#054285
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4186;
/* rgb */ color: rgb(47, 65, 134);
/* oklch */ color: oklch(40.0% 0.117 269.5);
Tailwind
colors: {
  custom: {
    50: '#7175aa',
    500: '#2f4186',
    950: '#000000',
  },
}
SCSS
$custom: #2f4186;
$custom-light: #7175aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4186",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 134
  },
  "hsl": {
    "h": 227.586,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39978,
    "c": 0.11727,
    "h": 269.5
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#2F4186
secondary
#B0A060
accent
#BC50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4186

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

Preview Lab → · Contrast checker → · Palette generator →

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