#2F4E9B#2F4E9B

#2F4E9B is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.131 H 265.0°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2F4E9B
RGBrgb(47, 78, 155)
HSLhsl(223, 53%, 40%)
HSVhsv(223, 70%, 61%)
CMYKcmyk(69.7%, 49.7%, 0%, 39.2%)
CIE-LABlab(34.84, 15.41, -45.47)
CIE-LCHlch(34.84, 48.01, 288.72°)
OKLaboklab(44.37% -0.0114 -0.1304)
OKLCHoklch(44.37% 0.131 265)
XYZxyz(9.8110, 8.4187, 32.1119)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E9B #9B7C2F
analogous
#2F849B #2F4E9B #462F9B
triadic
#2F4E9B #9B2F4E #4E9B2F
tetradic
#2F4E9B #9B2F84 #9B7C2F #2F9B46
square
#2F4E9B #9B2F84 #9B7C2F #2F9B46
split-complementary
#2F4E9B #9B462F #849B2F
monochromatic
#131F3D #21366C #2F4E9B #4267C6 #718DD4

Accessibility & contrast

On white

7.82
#2F4E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2F4E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E9B
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E9B#FFFFFF#000000##FFFFFF
##2F4E9B1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24579E
Deuteranopia (green-blind)
#044D99
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4e9b;
/* rgb */ color: rgb(47, 78, 155);
/* oklch */ color: oklch(44.4% 0.131 265.0);
Tailwind
colors: {
  custom: {
    50: '#757fb9',
    500: '#2f4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e9b;
$custom-light: #757fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e9b",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 222.778,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.13089,
    "h": 265
  },
  "luminance": 0.0842
}

Semantic roles & 50–950 ramp

primary
#2F4E9B
secondary
#BBA46A
accent
#B34BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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