#2F4185#2F4185

#2F4185 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.9% C 0.116 H 269.4°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#2F4185
RGBrgb(47, 65, 133)
HSLhsl(227, 48%, 35%)
HSVhsv(227, 65%, 52%)
CMYKcmyk(64.7%, 51.1%, 0%, 47.8%)
CIE-LABlab(29.61, 15.90, -40.43)
CIE-LCHlch(29.61, 43.45, 291.47°)
OKLaboklab(39.9% -0.0012 -0.1158)
OKLCHoklch(39.9% 0.116 269.4)
XYZxyz(7.2948, 6.0778, 22.9745)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4185 #85732F
analogous
#2F6C85 #2F4185 #482F85
triadic
#2F4185 #852F41 #41852F
tetradic
#2F4185 #852F6C #85732F #2F8548
square
#2F4185 #852F6C #85732F #2F8548
split-complementary
#2F4185 #85482F #6C852F
monochromatic
#0F152B #1F2B58 #2F4185 #3F57B2 #667AC9

Accessibility & contrast

On white

9.48
#2F4185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4185
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4185#FFFFFF#000000##FFFFFF
##2F41851.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4A87
Deuteranopia (green-blind)
#084284
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4185;
/* rgb */ color: rgb(47, 65, 133);
/* oklch */ color: oklch(39.9% 0.116 269.4);
Tailwind
colors: {
  custom: {
    50: '#7175a9',
    500: '#2f4185',
    950: '#000000',
  },
}
SCSS
$custom: #2f4185;
$custom-light: #7175a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4185",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 133
  },
  "hsl": {
    "h": 227.442,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39903,
    "c": 0.11579,
    "h": 269.4
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

primary
#2F4185
secondary
#B09F60
accent
#BB50D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4185

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

Preview Lab → · Contrast checker → · Palette generator →

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