#2F3C8F#2F3C8F

#2F3C8F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.137 H 271.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2F3C8F
RGBrgb(47, 60, 143)
HSLhsl(232, 51%, 37%)
HSVhsv(232, 67%, 56%)
CMYKcmyk(67.1%, 58%, 0%, 43.9%)
CIE-LABlab(28.95, 23.01, -47.68)
CIE-LCHlch(28.95, 52.94, 295.77°)
OKLaboklab(39.64% 0.0045 -0.1372)
OKLCHoklch(39.64% 0.137 271.9)
XYZxyz(7.7444, 5.8185, 26.6962)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C8F #8F822F
analogous
#2F6C8F #2F3C8F #522F8F
triadic
#2F3C8F #8F2F3C #3C8F2F
tetradic
#2F3C8F #8F2F6C #8F822F #2F8F52
square
#2F3C8F #8F2F6C #8F822F #2F8F52
split-complementary
#2F3C8F #8F522F #6C8F2F
monochromatic
#111533 #202961 #2F3C8F #3E4FBD #6A78CE

Accessibility & contrast

On white

9.71
#2F3C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F3C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C8F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C8F#FFFFFF#000000##FFFFFF
##2F3C8F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3c8f;
/* rgb */ color: rgb(47, 60, 143);
/* oklch */ color: oklch(39.6% 0.137 271.9);
Tailwind
colors: {
  custom: {
    50: '#7371b0',
    500: '#2f3c8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c8f;
$custom-light: #7371b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c8f",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 143
  },
  "hsl": {
    "h": 231.875,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39642,
    "c": 0.13723,
    "h": 271.9
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#2F3C8F
secondary
#B5AA65
accent
#C74EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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