#2F3E8A#2F3E8A

#2F3E8A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.127 H 271.1°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2F3E8A
RGBrgb(47, 62, 138)
HSLhsl(230, 49%, 36%)
HSVhsv(230, 66%, 54%)
CMYKcmyk(65.9%, 55.1%, 0%, 45.9%)
CIE-LABlab(29.12, 19.80, -44.32)
CIE-LCHlch(29.12, 48.54, 294.08°)
OKLaboklab(39.65% 0.0024 -0.1273)
OKLCHoklch(39.65% 0.127 271.1)
XYZxyz(7.4808, 5.8839, 24.7813)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E8A #8A7B2F
analogous
#2F6C8A #2F3E8A #4E2F8A
triadic
#2F3E8A #8A2F3E #3E8A2F
tetradic
#2F3E8A #8A2F6C #8A7B2F #2F8A4E
square
#2F3E8A #8A2F6C #8A7B2F #2F8A4E
split-complementary
#2F3E8A #8A4E2F #6C8A2F
monochromatic
#10152F #1F295C #2F3E8A #3F53B8 #6878CC

Accessibility & contrast

On white

9.65
#2F3E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F3E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E8A
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E8A#FFFFFF#000000##FFFFFF
##2F3E8A1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A498D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3e8a;
/* rgb */ color: rgb(47, 62, 138);
/* oklch */ color: oklch(39.6% 0.127 271.1);
Tailwind
colors: {
  custom: {
    50: '#7273ad',
    500: '#2f3e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e8a;
$custom-light: #7273ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e8a",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 230.11,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39647,
    "c": 0.12728,
    "h": 271.1
  },
  "luminance": 0.05885
}

Semantic roles & 50–950 ramp

primary
#2F3E8A
secondary
#B3A562
accent
#C24FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F3E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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