#2F4C95#2F4C95

#2F4C95 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.5% C 0.125 H 265.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#2F4C95
RGBrgb(47, 76, 149)
HSLhsl(223, 52%, 38%)
HSVhsv(223, 68%, 58%)
CMYKcmyk(68.5%, 49%, 0%, 41.6%)
CIE-LABlab(33.86, 14.48, -43.41)
CIE-LCHlch(33.86, 45.76, 288.45°)
OKLaboklab(43.49% -0.0103 -0.1244)
OKLCHoklch(43.49% 0.125 265.3)
XYZxyz(9.1797, 7.9423, 29.4772)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C95 #95782F
analogous
#2F7F95 #2F4C95 #452F95
triadic
#2F4C95 #952F4C #4C952F
tetradic
#2F4C95 #952F7F #95782F #2F9545
square
#2F4C95 #952F7F #95782F #2F9545
split-complementary
#2F4C95 #95452F #7F952F
monochromatic
#121D38 #203466 #2F4C95 #3F64C2 #6D8AD1

Accessibility & contrast

On white

8.11
#2F4C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F4C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C95
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C95#FFFFFF#000000##FFFFFF
##2F4C951.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255598
Deuteranopia (green-blind)
#0D4B94
Tritanopia (blue-blind)
#005D69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4c95;
/* rgb */ color: rgb(47, 76, 149);
/* oklch */ color: oklch(43.5% 0.125 265.3);
Tailwind
colors: {
  custom: {
    50: '#747db5',
    500: '#2f4c95',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c95;
$custom-light: #747db5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c95",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 149
  },
  "hsl": {
    "h": 222.941,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43492,
    "c": 0.12479,
    "h": 265.3
  },
  "luminance": 0.07943
}

Semantic roles & 50–950 ramp

primary
#2F4C95
secondary
#B8A167
accent
#B34CDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4C95

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

Preview Lab → · Contrast checker → · Palette generator →

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