#2F4A9A#2F4A9A

#2F4A9A is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.4% C 0.135 H 266.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2F4A9A
RGBrgb(47, 74, 154)
HSLhsl(225, 53%, 39%)
HSVhsv(225, 69%, 60%)
CMYKcmyk(69.5%, 51.9%, 0%, 39.6%)
CIE-LABlab(33.63, 17.70, -46.81)
CIE-LCHlch(33.63, 50.05, 290.72°)
OKLaboklab(43.43% -0.0077 -0.1344)
OKLCHoklch(43.43% 0.135 266.7)
XYZxyz(9.4518, 7.8341, 31.5796)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A9A #9A7F2F
analogous
#2F809A #2F4A9A #4A2F9A
triadic
#2F4A9A #9A2F4A #4A9A2F
tetradic
#2F4A9A #9A2F80 #9A7F2F #2F9A4A
square
#2F4A9A #9A2F80 #9A7F2F #2F9A4A
split-complementary
#2F4A9A #9A4A2F #809A2F
monochromatic
#121D3C #21336B #2F4A9A #4162C5 #7089D3

Accessibility & contrast

On white

8.18
#2F4A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F4A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A9A
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A9A#FFFFFF#000000##FFFFFF
##2F4A9A1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A549D
Deuteranopia (green-blind)
#004A98
Tritanopia (blue-blind)
#005D6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4a9a;
/* rgb */ color: rgb(47, 74, 154);
/* oklch */ color: oklch(43.4% 0.135 266.7);
Tailwind
colors: {
  custom: {
    50: '#757cb8',
    500: '#2f4a9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a9a;
$custom-light: #757cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a9a",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 154
  },
  "hsl": {
    "h": 224.86,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43428,
    "c": 0.13462,
    "h": 266.7
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#2F4A9A
secondary
#BBA66A
accent
#B84BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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