#2F4E9A#2F4E9A

#2F4E9A is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.129 H 264.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#2F4E9A
RGBrgb(47, 78, 154)
HSLhsl(223, 53%, 39%)
HSVhsv(223, 69%, 60%)
CMYKcmyk(69.5%, 49.4%, 0%, 39.6%)
CIE-LABlab(34.77, 15.03, -44.98)
CIE-LCHlch(34.77, 47.42, 288.48°)
OKLaboklab(44.3% -0.0115 -0.1289)
OKLCHoklch(44.3% 0.129 264.9)
XYZxyz(9.7274, 8.3852, 31.6715)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E9A #9A7B2F
analogous
#2F849A #2F4E9A #462F9A
triadic
#2F4E9A #9A2F4E #4E9A2F
tetradic
#2F4E9A #9A2F84 #9A7B2F #2F9A46
square
#2F4E9A #9A2F84 #9A7B2F #2F9A46
split-complementary
#2F4E9A #9A462F #849A2F
monochromatic
#121F3C #21366B #2F4E9A #4167C5 #708DD3

Accessibility & contrast

On white

7.84
#2F4E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4E9A
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E9A#FFFFFF#000000##FFFFFF
##2F4E9A1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25579D
Deuteranopia (green-blind)
#084D98
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4e9a;
/* rgb */ color: rgb(47, 78, 154);
/* oklch */ color: oklch(44.3% 0.129 264.9);
Tailwind
colors: {
  custom: {
    50: '#747fb8',
    500: '#2f4e9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e9a;
$custom-light: #747fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e9a",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 222.617,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44295,
    "c": 0.12945,
    "h": 264.9
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#2F4E9A
secondary
#BBA36A
accent
#B24BDD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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