#2F4A9F#2F4A9F

#2F4A9F is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.8% C 0.142 H 267.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#2F4A9F
RGBrgb(47, 74, 159)
HSLhsl(226, 54%, 40%)
HSVhsv(226, 70%, 62%)
CMYKcmyk(70.4%, 53.5%, 0%, 37.6%)
CIE-LABlab(33.99, 19.59, -49.25)
CIE-LCHlch(33.99, 53.01, 291.69°)
OKLaboklab(43.81% -0.0072 -0.1416)
OKLCHoklch(43.81% 0.142 267.1)
XYZxyz(9.8769, 8.0041, 33.8186)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A9F #9F842F
analogous
#2F829F #2F4A9F #4C2F9F
triadic
#2F4A9F #9F2F4A #4A9F2F
tetradic
#2F4A9F #9F2F82 #9F842F #2F9F4C
square
#2F4A9F #9F2F82 #9F842F #2F9F4C
split-complementary
#2F4A9F #9F4C2F #829F2F
monochromatic
#131E41 #213470 #2F4A9F #4463C8 #738BD6

Accessibility & contrast

On white

8.07
#2F4A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2F4A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A9F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A9F#FFFFFF#000000##FFFFFF
##2F4A9F1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1055A2
Deuteranopia (green-blind)
#004B9D
Tritanopia (blue-blind)
#005E6D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4a9f;
/* rgb */ color: rgb(47, 74, 159);
/* oklch */ color: oklch(43.8% 0.142 267.1);
Tailwind
colors: {
  custom: {
    50: '#767cbc',
    500: '#2f4a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a9f;
$custom-light: #767cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a9f",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 159
  },
  "hsl": {
    "h": 225.536,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43812,
    "c": 0.14177,
    "h": 267.1
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

primary
#2F4A9F
secondary
#BDAA6D
accent
#BA4ADE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2F4A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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