#2F4A9E#2F4A9E

#2F4A9E is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.7% C 0.140 H 267.0°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2F4A9E
RGBrgb(47, 74, 158)
HSLhsl(225, 54%, 40%)
HSVhsv(225, 70%, 62%)
CMYKcmyk(70.3%, 53.2%, 0%, 38%)
CIE-LABlab(33.92, 19.21, -48.77)
CIE-LCHlch(33.92, 52.41, 291.50°)
OKLaboklab(43.74% -0.0073 -0.1402)
OKLCHoklch(43.74% 0.14 267)
XYZxyz(9.7905, 7.9695, 33.3634)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A9E #9E832F
analogous
#2F829E #2F4A9E #4B2F9E
triadic
#2F4A9E #9E2F4A #4A9E2F
tetradic
#2F4A9E #9E2F82 #9E832F #2F9E4B
square
#2F4A9E #9E2F82 #9E832F #2F9E4B
split-complementary
#2F4A9E #9E4B2F #829E2F
monochromatic
#131E40 #21346F #2F4A9E #4363C7 #728AD5

Accessibility & contrast

On white

8.09
#2F4A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F4A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A9E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A9E#FFFFFF#000000##FFFFFF
##2F4A9E1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1355A1
Deuteranopia (green-blind)
#004B9C
Tritanopia (blue-blind)
#005E6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4a9e;
/* rgb */ color: rgb(47, 74, 158);
/* oklch */ color: oklch(43.7% 0.140 267.0);
Tailwind
colors: {
  custom: {
    50: '#767cbb',
    500: '#2f4a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a9e;
$custom-light: #767cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a9e",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 158
  },
  "hsl": {
    "h": 225.405,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43735,
    "c": 0.14035,
    "h": 267
  },
  "luminance": 0.07971
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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