#2F3C8B#2F3C8B

#2F3C8B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.131 H 271.9°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2F3C8B
RGBrgb(47, 60, 139)
HSLhsl(232, 49%, 36%)
HSVhsv(232, 66%, 55%)
CMYKcmyk(66.2%, 56.8%, 0%, 45.5%)
CIE-LABlab(28.64, 21.53, -45.71)
CIE-LCHlch(28.64, 50.53, 295.22°)
OKLaboklab(39.31% 0.0044 -0.1314)
OKLCHoklch(39.31% 0.131 271.9)
XYZxyz(7.4468, 5.6995, 25.1288)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C8B #8B7E2F
analogous
#2F6A8B #2F3C8B #502F8B
triadic
#2F3C8B #8B2F3C #3C8B2F
tetradic
#2F3C8B #8B2F6A #8B7E2F #2F8B50
square
#2F3C8B #8B2F6A #8B7E2F #2F8B50
split-complementary
#2F3C8B #8B502F #6A8B2F
monochromatic
#101530 #20285D #2F3C8B #3E50B9 #6876CC

Accessibility & contrast

On white

9.81
#2F3C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F3C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C8B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C8B#FFFFFF#000000##FFFFFF
##2F3C8B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3c8b;
/* rgb */ color: rgb(47, 60, 139);
/* oklch */ color: oklch(39.3% 0.131 271.9);
Tailwind
colors: {
  custom: {
    50: '#7271ad',
    500: '#2f3c8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c8b;
$custom-light: #7271ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c8b",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 139
  },
  "hsl": {
    "h": 231.522,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39313,
    "c": 0.13144,
    "h": 271.9
  },
  "luminance": 0.057
}

Semantic roles & 50–950 ramp

primary
#2F3C8B
secondary
#B3A863
accent
#C54FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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