#2F4289#2F4289

#2F4289 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.120 H 269.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2F4289
RGBrgb(47, 66, 137)
HSLhsl(227, 49%, 36%)
HSVhsv(227, 66%, 54%)
CMYKcmyk(65.7%, 51.8%, 0%, 46.3%)
CIE-LABlab(30.17, 16.71, -42.00)
CIE-LCHlch(30.17, 45.20, 291.70°)
OKLaboklab(40.42% -0.0018 -0.1204)
OKLCHoklch(40.42% 0.12 269.2)
XYZxyz(7.6343, 6.3062, 24.4770)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4289 #89762F
analogous
#2F6F89 #2F4289 #492F89
triadic
#2F4289 #892F42 #42892F
tetradic
#2F4289 #892F6F #89762F #2F8949
square
#2F4289 #892F6F #89762F #2F8949
split-complementary
#2F4289 #89492F #6F892F
monochromatic
#10162E #1F2C5B #2F4289 #3F58B7 #677CCB

Accessibility & contrast

On white

9.29
#2F4289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F4289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4289
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4289#FFFFFF#000000##FFFFFF
##2F42891.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4B8C
Deuteranopia (green-blind)
#014388
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f4289;
/* rgb */ color: rgb(47, 66, 137);
/* oklch */ color: oklch(40.4% 0.120 269.2);
Tailwind
colors: {
  custom: {
    50: '#7276ac',
    500: '#2f4289',
    950: '#000000',
  },
}
SCSS
$custom: #2f4289;
$custom-light: #7276ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4289",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 137
  },
  "hsl": {
    "h": 227.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40421,
    "c": 0.12039,
    "h": 269.2
  },
  "luminance": 0.06307
}

Semantic roles & 50–950 ramp

primary
#2F4289
secondary
#B2A162
accent
#BC4FD8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4289

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

Preview Lab → · Contrast checker → · Palette generator →

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