#2F4E98#2F4E98

#2F4E98 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.127 H 264.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2F4E98
RGBrgb(47, 78, 152)
HSLhsl(222, 53%, 39%)
HSVhsv(222, 69%, 60%)
CMYKcmyk(69.1%, 48.7%, 0%, 40.4%)
CIE-LABlab(34.64, 14.27, -43.98)
CIE-LCHlch(34.64, 46.24, 287.98°)
OKLaboklab(44.15% -0.0118 -0.126)
OKLCHoklch(44.15% 0.127 264.7)
XYZxyz(9.5622, 8.3192, 30.8015)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E98 #98792F
analogous
#2F8398 #2F4E98 #452F98
triadic
#2F4E98 #982F4E #4E982F
tetradic
#2F4E98 #982F83 #98792F #2F9845
square
#2F4E98 #982F83 #98792F #2F9845
split-complementary
#2F4E98 #98452F #83982F
monochromatic
#121E3B #213669 #2F4E98 #4067C4 #6F8CD2

Accessibility & contrast

On white

7.88
#2F4E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F4E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E98
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E98#FFFFFF#000000##FFFFFF
##2F4E981.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#0E4D96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4e98;
/* rgb */ color: rgb(47, 78, 152);
/* oklch */ color: oklch(44.1% 0.127 264.7);
Tailwind
colors: {
  custom: {
    50: '#747fb7',
    500: '#2f4e98',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e98;
$custom-light: #747fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e98",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 222.286,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4415,
    "c": 0.12657,
    "h": 264.7
  },
  "luminance": 0.0832
}

Semantic roles & 50–950 ramp

primary
#2F4E98
secondary
#BAA269
accent
#B24CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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