#2F4B9D#2F4B9D

#2F4B9D is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.138 H 266.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#2F4B9D
RGBrgb(47, 75, 157)
HSLhsl(225, 54%, 40%)
HSVhsv(225, 70%, 62%)
CMYKcmyk(70.1%, 52.2%, 0%, 38.4%)
CIE-LABlab(34.13, 18.17, -47.83)
CIE-LCHlch(34.13, 51.16, 290.80°)
OKLaboklab(43.87% -0.0083 -0.1374)
OKLCHoklch(43.87% 0.138 266.5)
XYZxyz(9.7721, 8.0698, 32.9344)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B9D #9D812F
analogous
#2F829D #2F4B9D #4A2F9D
triadic
#2F4B9D #9D2F4B #4B9D2F
tetradic
#2F4B9D #9D2F82 #9D812F #2F9D4A
square
#2F4B9D #9D2F82 #9D812F #2F9D4A
split-complementary
#2F4B9D #9D4A2F #829D2F
monochromatic
#131E3F #21356E #2F4B9D #4364C7 #728BD5

Accessibility & contrast

On white

8.03
#2F4B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2F4B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B9D
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B9D#FFFFFF#000000##FFFFFF
##2F4B9D1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1856A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#005E6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4b9d;
/* rgb */ color: rgb(47, 75, 157);
/* oklch */ color: oklch(43.9% 0.138 266.5);
Tailwind
colors: {
  custom: {
    50: '#757cba',
    500: '#2f4b9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b9d;
$custom-light: #757cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b9d",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 157
  },
  "hsl": {
    "h": 224.727,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.4387,
    "c": 0.13763,
    "h": 266.5
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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