#2F4E9F#2F4E9F

#2F4E9F is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.137 H 265.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#2F4E9F
RGBrgb(47, 78, 159)
HSLhsl(223, 54%, 40%)
HSVhsv(223, 70%, 62%)
CMYKcmyk(70.4%, 50.9%, 0%, 37.6%)
CIE-LABlab(35.11, 16.92, -47.44)
CIE-LCHlch(35.11, 50.37, 289.63°)
OKLaboklab(44.66% -0.0109 -0.1362)
OKLCHoklch(44.66% 0.137 265.4)
XYZxyz(10.1525, 8.5553, 33.9105)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E9F #9F802F
analogous
#2F869F #2F4E9F #482F9F
triadic
#2F4E9F #9F2F4E #4E9F2F
tetradic
#2F4E9F #9F2F86 #9F802F #2F9F48
square
#2F4E9F #9F2F86 #9F802F #2F9F48
split-complementary
#2F4E9F #9F482F #869F2F
monochromatic
#132041 #213770 #2F4E9F #4468C8 #738ED6

Accessibility & contrast

On white

7.75
#2F4E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2F4E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E9F
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E9F#FFFFFF#000000##FFFFFF
##2F4E9F1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F58A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4e9f;
/* rgb */ color: rgb(47, 78, 159);
/* oklch */ color: oklch(44.7% 0.137 265.4);
Tailwind
colors: {
  custom: {
    50: '#767fbc',
    500: '#2f4e9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e9f;
$custom-light: #767fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e9f",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 223.393,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44664,
    "c": 0.13663,
    "h": 265.4
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

primary
#2F4E9F
secondary
#BDA76D
accent
#B54ADE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F4E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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