#2F4F9D#2F4F9D

#2F4F9D is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.132 H 264.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#2F4F9D
RGBrgb(47, 79, 157)
HSLhsl(223, 54%, 40%)
HSVhsv(223, 70%, 62%)
CMYKcmyk(70.1%, 49.7%, 0%, 38.4%)
CIE-LABlab(35.26, 15.50, -46.00)
CIE-LCHlch(35.26, 48.54, 288.62°)
OKLaboklab(44.73% -0.012 -0.1319)
OKLCHoklch(44.73% 0.132 264.8)
XYZxyz(10.0519, 8.6296, 33.0277)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F9D #9D7D2F
analogous
#2F869D #2F4F9D #462F9D
triadic
#2F4F9D #9D2F4F #4F9D2F
tetradic
#2F4F9D #9D2F86 #9D7D2F #2F9D46
square
#2F4F9D #9D2F86 #9D7D2F #2F9D46
split-complementary
#2F4F9D #9D462F #869D2F
monochromatic
#13203F #21376E #2F4F9D #4369C7 #728FD5

Accessibility & contrast

On white

7.70
#2F4F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F4F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F9D
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F9D#FFFFFF#000000##FFFFFF
##2F4F9D1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2458A0
Deuteranopia (green-blind)
#034E9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4f9d;
/* rgb */ color: rgb(47, 79, 157);
/* oklch */ color: oklch(44.7% 0.132 264.8);
Tailwind
colors: {
  custom: {
    50: '#757fba',
    500: '#2f4f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f9d;
$custom-light: #757fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f9d",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 222.545,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.44732,
    "c": 0.13249,
    "h": 264.8
  },
  "luminance": 0.08631
}

Semantic roles & 50–950 ramp

primary
#2F4F9D
secondary
#BCA56B
accent
#B34BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F4F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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