#2F4189#2F4189

#2F4189 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.122 H 269.6°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#2F4189
RGBrgb(47, 65, 137)
HSLhsl(228, 49%, 36%)
HSVhsv(228, 66%, 54%)
CMYKcmyk(65.7%, 52.6%, 0%, 46.3%)
CIE-LABlab(29.89, 17.39, -42.46)
CIE-LCHlch(29.89, 45.88, 292.28°)
OKLaboklab(40.21% -0.0007 -0.1217)
OKLCHoklch(40.21% 0.122 269.6)
XYZxyz(7.5764, 6.1904, 24.4577)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4189 #89772F
analogous
#2F6E89 #2F4189 #4A2F89
triadic
#2F4189 #892F41 #41892F
tetradic
#2F4189 #892F6E #89772F #2F894A
square
#2F4189 #892F6E #89772F #2F894A
split-complementary
#2F4189 #894A2F #6E892F
monochromatic
#10162E #1F2B5B #2F4189 #3F57B7 #677BCB

Accessibility & contrast

On white

9.38
#2F4189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F4189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4189
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4189#FFFFFF#000000##FFFFFF
##2F41891.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174B8C
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4189;
/* rgb */ color: rgb(47, 65, 137);
/* oklch */ color: oklch(40.2% 0.122 269.6);
Tailwind
colors: {
  custom: {
    50: '#7275ac',
    500: '#2f4189',
    950: '#000000',
  },
}
SCSS
$custom: #2f4189;
$custom-light: #7275ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4189",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 137
  },
  "hsl": {
    "h": 228,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40205,
    "c": 0.12174,
    "h": 269.6
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#2F4189
secondary
#B2A262
accent
#BD4FD8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4189

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

Preview Lab → · Contrast checker → · Palette generator →

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