#2F4588#2F4588

#2F4588 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.0% C 0.115 H 267.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#2F4588
RGBrgb(47, 69, 136)
HSLhsl(225, 49%, 36%)
HSVhsv(225, 65%, 53%)
CMYKcmyk(65.4%, 49.3%, 0%, 46.7%)
CIE-LABlab(30.97, 14.30, -40.10)
CIE-LCHlch(30.97, 42.58, 289.63°)
OKLaboklab(41% -0.005 -0.1147)
OKLCHoklch(41% 0.115 267.5)
XYZxyz(7.7428, 6.6375, 24.1609)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4588 #88722F
analogous
#2F7188 #2F4588 #452F88
triadic
#2F4588 #882F45 #45882F
tetradic
#2F4588 #882F71 #88722F #2F8845
square
#2F4588 #882F71 #88722F #2F8845
split-complementary
#2F4588 #88452F #71882F
monochromatic
#10172D #1F2E5B #2F4588 #3F5CB5 #6780CA

Accessibility & contrast

On white

9.02
#2F4588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F4588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4588
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4588#FFFFFF#000000##FFFFFF
##2F45881.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234D8A
Deuteranopia (green-blind)
#114587
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4588;
/* rgb */ color: rgb(47, 69, 136);
/* oklch */ color: oklch(41.0% 0.115 267.5);
Tailwind
colors: {
  custom: {
    50: '#7178ab',
    500: '#2f4588',
    950: '#000000',
  },
}
SCSS
$custom: #2f4588;
$custom-light: #7178ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4588",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 136
  },
  "hsl": {
    "h": 225.169,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41003,
    "c": 0.11486,
    "h": 267.5
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#2F4588
secondary
#B19E61
accent
#B650D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4588

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

Preview Lab → · Contrast checker → · Palette generator →

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