#2F4298#2F4298

#2F4298 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.6% C 0.142 H 269.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2F4298
RGBrgb(47, 66, 152)
HSLhsl(229, 53%, 39%)
HSVhsv(229, 69%, 60%)
CMYKcmyk(69.1%, 56.6%, 0%, 40.4%)
CIE-LABlab(31.27, 22.33, -49.42)
CIE-LCHlch(31.27, 54.23, 294.31°)
OKLaboklab(41.6% -0.0006 -0.1422)
OKLCHoklch(41.6% 0.142 269.8)
XYZxyz(8.7861, 6.7669, 30.5428)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4298 #98852F
analogous
#2F7798 #2F4298 #512F98
triadic
#2F4298 #982F42 #42982F
tetradic
#2F4298 #982F77 #98852F #2F9851
square
#2F4298 #982F77 #98852F #2F9851
split-complementary
#2F4298 #98512F #77982F
monochromatic
#12193B #212E69 #2F4298 #4058C4 #6F81D2

Accessibility & contrast

On white

8.92
#2F4298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F4298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4298
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4298#FFFFFF#000000##FFFFFF
##2F42981.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4298;
/* rgb */ color: rgb(47, 66, 152);
/* oklch */ color: oklch(41.6% 0.142 269.8);
Tailwind
colors: {
  custom: {
    50: '#7576b7',
    500: '#2f4298',
    950: '#000000',
  },
}
SCSS
$custom: #2f4298;
$custom-light: #7576b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4298",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 152
  },
  "hsl": {
    "h": 229.143,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41598,
    "c": 0.14221,
    "h": 269.8
  },
  "luminance": 0.06768
}

Semantic roles & 50–950 ramp

primary
#2F4298
secondary
#BAAB69
accent
#C24CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4298

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

Preview Lab → · Contrast checker → · Palette generator →

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