#2F4486#2F4486

#2F4486 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.6% C 0.113 H 267.8°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2F4486
RGBrgb(47, 68, 134)
HSLhsl(226, 48%, 35%)
HSVhsv(226, 65%, 53%)
CMYKcmyk(64.9%, 49.3%, 0%, 47.5%)
CIE-LABlab(30.54, 14.24, -39.55)
CIE-LCHlch(30.54, 42.03, 289.80°)
OKLaboklab(40.64% -0.0042 -0.1131)
OKLCHoklch(40.64% 0.113 267.8)
XYZxyz(7.5410, 6.4591, 23.3990)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4486 #86712F
analogous
#2F6F86 #2F4486 #452F86
triadic
#2F4486 #862F44 #44862F
tetradic
#2F4486 #862F6F #86712F #2F8645
square
#2F4486 #862F6F #86712F #2F8645
split-complementary
#2F4486 #86452F #6F862F
monochromatic
#0F162B #1F2D59 #2F4486 #3F5BB3 #667EC9

Accessibility & contrast

On white

9.16
#2F4486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F4486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4486
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4486#FFFFFF#000000##FFFFFF
##2F44861.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224C88
Deuteranopia (green-blind)
#124485
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4486;
/* rgb */ color: rgb(47, 68, 134);
/* oklch */ color: oklch(40.6% 0.113 267.8);
Tailwind
colors: {
  custom: {
    50: '#7177aa',
    500: '#2f4486',
    950: '#000000',
  },
}
SCSS
$custom: #2f4486;
$custom-light: #7177aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4486",
  "rgb": {
    "r": 47,
    "g": 68,
    "b": 134
  },
  "hsl": {
    "h": 225.517,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40636,
    "c": 0.11322,
    "h": 267.8
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

primary
#2F4486
secondary
#B09D60
accent
#B750D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4486

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

Preview Lab → · Contrast checker → · Palette generator →

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