#2F4089#2F4089

#2F4089 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.123 H 270.1°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#2F4089
RGBrgb(47, 64, 137)
HSLhsl(229, 49%, 36%)
HSVhsv(229, 66%, 54%)
CMYKcmyk(65.7%, 53.3%, 0%, 46.3%)
CIE-LABlab(29.60, 18.07, -42.92)
CIE-LCHlch(29.60, 46.57, 292.84°)
OKLaboklab(39.99% 0.0003 -0.1231)
OKLCHoklch(39.99% 0.123 270.1)
XYZxyz(7.5195, 6.0766, 24.4387)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4089 #89782F
analogous
#2F6D89 #2F4089 #4B2F89
triadic
#2F4089 #892F40 #40892F
tetradic
#2F4089 #892F6D #89782F #2F894B
square
#2F4089 #892F6D #89782F #2F894B
split-complementary
#2F4089 #894B2F #6D892F
monochromatic
#10152E #1F2B5B #2F4089 #3F55B7 #677ACB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4089#FFFFFF#000000##FFFFFF
##2F40891.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)
#144A8C
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4089;
/* rgb */ color: rgb(47, 64, 137);
/* oklch */ color: oklch(40.0% 0.123 270.1);
Tailwind
colors: {
  custom: {
    50: '#7274ac',
    500: '#2f4089',
    950: '#000000',
  },
}
SCSS
$custom: #2f4089;
$custom-light: #7274ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4089",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 137
  },
  "hsl": {
    "h": 228.667,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39991,
    "c": 0.1231,
    "h": 270.1
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#2F4089
secondary
#B2A362
accent
#BF4FD8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4089

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

Preview Lab → · Contrast checker → · Palette generator →

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