#2F4A9C#2F4A9C

#2F4A9C is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.6% C 0.138 H 266.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#2F4A9C
RGBrgb(47, 74, 156)
HSLhsl(225, 54%, 40%)
HSVhsv(225, 70%, 61%)
CMYKcmyk(69.9%, 52.6%, 0%, 38.8%)
CIE-LABlab(33.78, 18.46, -47.79)
CIE-LCHlch(33.78, 51.23, 291.12°)
OKLaboklab(43.58% -0.0075 -0.1373)
OKLCHoklch(43.58% 0.138 266.9)
XYZxyz(9.6197, 7.9012, 32.4642)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A9C #9C812F
analogous
#2F809C #2F4A9C #4B2F9C
triadic
#2F4A9C #9C2F4A #4A9C2F
tetradic
#2F4A9C #9C2F80 #9C812F #2F9C4B
square
#2F4A9C #9C2F80 #9C812F #2F9C4B
split-complementary
#2F4A9C #9C4B2F #809C2F
monochromatic
#131D3E #21346D #2F4A9C #4263C6 #718AD4

Accessibility & contrast

On white

8.14
#2F4A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2F4A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A9C
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A9C#FFFFFF#000000##FFFFFF
##2F4A9C1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17559F
Deuteranopia (green-blind)
#004B9A
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4a9c;
/* rgb */ color: rgb(47, 74, 156);
/* oklch */ color: oklch(43.6% 0.138 266.9);
Tailwind
colors: {
  custom: {
    50: '#757cba',
    500: '#2f4a9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a9c;
$custom-light: #757cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a9c",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 156
  },
  "hsl": {
    "h": 225.138,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43581,
    "c": 0.1375,
    "h": 266.9
  },
  "luminance": 0.07902
}

Semantic roles & 50–950 ramp

primary
#2F4A9C
secondary
#BCA86B
accent
#B94BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2F4A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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