#2F4B9F#2F4B9F

#2F4B9F is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.0% C 0.140 H 266.7°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2F4B9F
RGBrgb(47, 75, 159)
HSLhsl(225, 54%, 40%)
HSVhsv(225, 70%, 62%)
CMYKcmyk(70.4%, 52.8%, 0%, 37.6%)
CIE-LABlab(34.27, 18.92, -48.80)
CIE-LCHlch(34.27, 52.34, 291.19°)
OKLaboklab(44.02% -0.0081 -0.1403)
OKLCHoklch(44.02% 0.14 266.7)
XYZxyz(9.9442, 8.1387, 33.8410)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B9F #9F832F
analogous
#2F839F #2F4B9F #4B2F9F
triadic
#2F4B9F #9F2F4B #4B9F2F
tetradic
#2F4B9F #9F2F83 #9F832F #2F9F4B
square
#2F4B9F #9F2F83 #9F832F #2F9F4B
split-complementary
#2F4B9F #9F4B2F #839F2F
monochromatic
#131E41 #213570 #2F4B9F #4465C8 #738CD6

Accessibility & contrast

On white

7.99
#2F4B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F4B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B9F
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B9F#FFFFFF#000000##FFFFFF
##2F4B9F1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1556A2
Deuteranopia (green-blind)
#004C9D
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4b9f;
/* rgb */ color: rgb(47, 75, 159);
/* oklch */ color: oklch(44.0% 0.140 266.7);
Tailwind
colors: {
  custom: {
    50: '#767cbc',
    500: '#2f4b9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b9f;
$custom-light: #767cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b9f",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 159
  },
  "hsl": {
    "h": 225,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44023,
    "c": 0.14049,
    "h": 266.7
  },
  "luminance": 0.0814
}

Semantic roles & 50–950 ramp

primary
#2F4B9F
secondary
#BDA96D
accent
#B94ADE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2F4B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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