#2F4187#2F4187

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

Color values

HEX#2F4187
RGBrgb(47, 65, 135)
HSLhsl(228, 48%, 36%)
HSVhsv(228, 65%, 53%)
CMYKcmyk(65.2%, 51.9%, 0%, 47.1%)
CIE-LABlab(29.75, 16.65, -41.45)
CIE-LCHlch(29.75, 44.67, 291.88°)
OKLaboklab(40.05% -0.001 -0.1188)
OKLCHoklch(40.05% 0.119 269.5)
XYZxyz(7.4343, 6.1335, 23.7091)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4187 #87752F
analogous
#2F6D87 #2F4187 #492F87
triadic
#2F4187 #872F41 #41872F
tetradic
#2F4187 #872F6D #87752F #2F8749
square
#2F4187 #872F6D #87752F #2F8749
split-complementary
#2F4187 #87492F #6D872F
monochromatic
#0F152C #1F2B5A #2F4187 #3F57B4 #667BCA

Accessibility & contrast

On white

9.43
#2F4187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4187
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4187#FFFFFF#000000##FFFFFF
##2F41871.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4187;
/* rgb */ color: rgb(47, 65, 135);
/* oklch */ color: oklch(40.1% 0.119 269.5);
Tailwind
colors: {
  custom: {
    50: '#7175aa',
    500: '#2f4187',
    950: '#000000',
  },
}
SCSS
$custom: #2f4187;
$custom-light: #7175aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4187",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 227.727,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40053,
    "c": 0.11877,
    "h": 269.5
  },
  "luminance": 0.06134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4187

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

Preview Lab → · Contrast checker → · Palette generator →

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