#2F4278#2F4278

#2F4278 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.2% C 0.095 H 267.4°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2F4278
RGBrgb(47, 66, 120)
HSLhsl(224, 44%, 33%)
HSVhsv(224, 61%, 47%)
CMYKcmyk(60.8%, 45%, 0%, 52.9%)
CIE-LABlab(29.05, 10.40, -33.21)
CIE-LCHlch(29.05, 34.80, 287.39°)
OKLaboklab(39.2% -0.0043 -0.0945)
OKLCHoklch(39.2% 0.095 267.4)
XYZxyz(6.5095, 5.8563, 18.5530)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4278 #78652F
analogous
#2F6678 #2F4278 #412F78
triadic
#2F4278 #782F42 #42782F
tetradic
#2F4278 #782F66 #78652F #2F7841
square
#2F4278 #782F66 #78652F #2F7841
split-complementary
#2F4278 #78412F #66782F
monochromatic
#0D1220 #1E2A4C #2F4278 #405AA4 #607AC1

Accessibility & contrast

On white

9.67
#2F4278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F4278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4278
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4278#FFFFFF#000000##FFFFFF
##2F42781.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A487A
Deuteranopia (green-blind)
#204177
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f4278;
/* rgb */ color: rgb(47, 66, 120);
/* oklch */ color: oklch(39.2% 0.095 267.4);
Tailwind
colors: {
  custom: {
    50: '#6e769f',
    500: '#2f4278',
    950: '#000000',
  },
}
SCSS
$custom: #2f4278;
$custom-light: #6e769f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4278",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 120
  },
  "hsl": {
    "h": 224.384,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.392,
    "c": 0.09464,
    "h": 267.4
  },
  "luminance": 0.05857
}

Semantic roles & 50–950 ramp

primary
#2F4278
secondary
#A8945B
accent
#B254D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #2F4278

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

Preview Lab → · Contrast checker → · Palette generator →

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