#2F4A91#2F4A91

#2F4A91 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.8% C 0.122 H 265.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2F4A91
RGBrgb(47, 74, 145)
HSLhsl(223, 51%, 38%)
HSVhsv(223, 68%, 57%)
CMYKcmyk(67.6%, 49%, 0%, 43.1%)
CIE-LABlab(33.02, 14.31, -42.33)
CIE-LCHlch(33.02, 44.69, 288.68°)
OKLaboklab(42.76% -0.0089 -0.1212)
OKLCHoklch(42.76% 0.122 265.8)
XYZxyz(8.7301, 7.5454, 27.7789)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A91 #91762F
analogous
#2F7B91 #2F4A91 #452F91
triadic
#2F4A91 #912F4A #4A912F
tetradic
#2F4A91 #912F7B #91762F #2F9145
square
#2F4A91 #912F7B #91762F #2F9145
split-complementary
#2F4A91 #91452F #7B912F
monochromatic
#111B35 #203263 #2F4A91 #3E62BF #6B87CF

Accessibility & contrast

On white

8.37
#2F4A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2F4A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A91
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A91#FFFFFF#000000##FFFFFF
##2F4A911.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255294
Deuteranopia (green-blind)
#0F4990
Tritanopia (blue-blind)
#005A66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4a91;
/* rgb */ color: rgb(47, 74, 145);
/* oklch */ color: oklch(42.8% 0.122 265.8);
Tailwind
colors: {
  custom: {
    50: '#737cb2',
    500: '#2f4a91',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a91;
$custom-light: #737cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a91",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 145
  },
  "hsl": {
    "h": 223.469,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42761,
    "c": 0.12156,
    "h": 265.8
  },
  "luminance": 0.07546
}

Semantic roles & 50–950 ramp

primary
#2F4A91
secondary
#B6A065
accent
#B44DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4A91

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

Preview Lab → · Contrast checker → · Palette generator →

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