#2F4A98#2F4A98

#2F4A98 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.132 H 266.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2F4A98
RGBrgb(47, 74, 152)
HSLhsl(225, 53%, 39%)
HSVhsv(225, 69%, 60%)
CMYKcmyk(69.1%, 51.3%, 0%, 40.4%)
CIE-LABlab(33.49, 16.95, -45.82)
CIE-LCHlch(33.49, 48.86, 290.30°)
OKLaboklab(43.28% -0.008 -0.1315)
OKLCHoklch(43.28% 0.132 266.5)
XYZxyz(9.2866, 7.7680, 30.7096)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A98 #987D2F
analogous
#2F7F98 #2F4A98 #482F98
triadic
#2F4A98 #982F4A #4A982F
tetradic
#2F4A98 #982F7F #987D2F #2F9848
square
#2F4A98 #982F7F #987D2F #2F9848
split-complementary
#2F4A98 #98482F #7F982F
monochromatic
#121C3B #213369 #2F4A98 #4062C4 #6F89D2

Accessibility & contrast

On white

8.22
#2F4A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F4A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A98
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A98#FFFFFF#000000##FFFFFF
##2F4A981.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D549B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#005C6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4a98;
/* rgb */ color: rgb(47, 74, 152);
/* oklch */ color: oklch(43.3% 0.132 266.5);
Tailwind
colors: {
  custom: {
    50: '#747cb7',
    500: '#2f4a98',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a98;
$custom-light: #747cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a98",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 152
  },
  "hsl": {
    "h": 224.571,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43278,
    "c": 0.13174,
    "h": 266.5
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#2F4A98
secondary
#BAA569
accent
#B74CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4A98

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

Preview Lab → · Contrast checker → · Palette generator →

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