#2F3E8D#2F3E8D

#2F3E8D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.132 H 271.1°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2F3E8D
RGBrgb(47, 62, 141)
HSLhsl(230, 50%, 37%)
HSVhsv(230, 67%, 55%)
CMYKcmyk(66.7%, 56%, 0%, 44.7%)
CIE-LABlab(29.34, 20.92, -45.81)
CIE-LCHlch(29.34, 50.36, 294.54°)
OKLaboklab(39.89% 0.0026 -0.1316)
OKLCHoklch(39.89% 0.132 271.1)
XYZxyz(7.7010, 5.9720, 25.9410)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E8D #8D7E2F
analogous
#2F6D8D #2F3E8D #4F2F8D
triadic
#2F3E8D #8D2F3E #3E8D2F
tetradic
#2F3E8D #8D2F6D #8D7E2F #2F8D4F
square
#2F3E8D #8D2F6D #8D7E2F #2F8D4F
split-complementary
#2F3E8D #8D4F2F #6D8D2F
monochromatic
#101631 #202A5F #2F3E8D #3E52BB #6979CD

Accessibility & contrast

On white

9.57
#2F3E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F3E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E8D
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E8D#FFFFFF#000000##FFFFFF
##2F3E8D1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3e8d;
/* rgb */ color: rgb(47, 62, 141);
/* oklch */ color: oklch(39.9% 0.132 271.1);
Tailwind
colors: {
  custom: {
    50: '#7373af',
    500: '#2f3e8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e8d;
$custom-light: #7373af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e8d",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 141
  },
  "hsl": {
    "h": 230.426,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39886,
    "c": 0.13166,
    "h": 271.1
  },
  "luminance": 0.05973
}

Semantic roles & 50–950 ramp

primary
#2F3E8D
secondary
#B4A764
accent
#C34EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F3E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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