#2F4E9D#2F4E9D

#2F4E9D is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.134 H 265.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2F4E9D
RGBrgb(47, 78, 157)
HSLhsl(223, 54%, 40%)
HSVhsv(223, 70%, 62%)
CMYKcmyk(70.1%, 50.3%, 0%, 38.4%)
CIE-LABlab(34.98, 16.16, -46.46)
CIE-LCHlch(34.98, 49.19, 289.18°)
OKLaboklab(44.52% -0.0111 -0.1333)
OKLCHoklch(44.52% 0.134 265.2)
XYZxyz(9.9804, 8.4864, 33.0038)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E9D #9D7E2F
analogous
#2F859D #2F4E9D #472F9D
triadic
#2F4E9D #9D2F4E #4E9D2F
tetradic
#2F4E9D #9D2F85 #9D7E2F #2F9D47
square
#2F4E9D #9D2F85 #9D7E2F #2F9D47
split-complementary
#2F4E9D #9D472F #859D2F
monochromatic
#131F3F #21376E #2F4E9D #4368C7 #728ED5

Accessibility & contrast

On white

7.79
#2F4E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F4E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E9D
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E9D#FFFFFF#000000##FFFFFF
##2F4E9D1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2158A0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4e9d;
/* rgb */ color: rgb(47, 78, 157);
/* oklch */ color: oklch(44.5% 0.134 265.2);
Tailwind
colors: {
  custom: {
    50: '#757fba',
    500: '#2f4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e9d;
$custom-light: #757fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e9d",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 223.091,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.44515,
    "c": 0.13377,
    "h": 265.2
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#2F4E9D
secondary
#BCA66B
accent
#B44BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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