#2F3F8D#2F3F8D

#2F3F8D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.130 H 270.7°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2F3F8D
RGBrgb(47, 63, 141)
HSLhsl(230, 50%, 37%)
HSVhsv(230, 67%, 55%)
CMYKcmyk(66.7%, 55.3%, 0%, 44.7%)
CIE-LABlab(29.62, 20.24, -45.36)
CIE-LCHlch(29.62, 49.68, 294.05°)
OKLaboklab(40.09% 0.0016 -0.1303)
OKLCHoklch(40.09% 0.13 270.7)
XYZxyz(7.7559, 6.0817, 25.9593)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F8D #8D7D2F
analogous
#2F6E8D #2F3F8D #4E2F8D
triadic
#2F3F8D #8D2F3F #3F8D2F
tetradic
#2F3F8D #8D2F6E #8D7D2F #2F8D4E
square
#2F3F8D #8D2F6E #8D7D2F #2F8D4E
split-complementary
#2F3F8D #8D4E2F #6E8D2F
monochromatic
#101631 #202A5F #2F3F8D #3E54BB #697ACD

Accessibility & contrast

On white

9.47
#2F3F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F3F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F8D
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F8D#FFFFFF#000000##FFFFFF
##2F3F8D1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074A90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3f8d;
/* rgb */ color: rgb(47, 63, 141);
/* oklch */ color: oklch(40.1% 0.130 270.7);
Tailwind
colors: {
  custom: {
    50: '#7373af',
    500: '#2f3f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f8d;
$custom-light: #7373af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f8d",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 229.787,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40094,
    "c": 0.13032,
    "h": 270.7
  },
  "luminance": 0.06082
}

Semantic roles & 50–950 ramp

primary
#2F3F8D
secondary
#B4A664
accent
#C24EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F3F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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