#2F3F8B#2F3F8B

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

Color values

HEX#2F3F8B
RGBrgb(47, 63, 139)
HSLhsl(230, 49%, 36%)
HSVhsv(230, 66%, 55%)
CMYKcmyk(66.2%, 54.7%, 0%, 45.5%)
CIE-LABlab(29.47, 19.50, -44.37)
CIE-LCHlch(29.47, 48.46, 293.72°)
OKLaboklab(39.93% 0.0014 -0.1274)
OKLCHoklch(39.93% 0.127 270.6)
XYZxyz(7.6084, 6.0228, 25.1826)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F8B #8B7B2F
analogous
#2F6D8B #2F3F8B #4D2F8B
triadic
#2F3F8B #8B2F3F #3F8B2F
tetradic
#2F3F8B #8B2F6D #8B7B2F #2F8B4D
square
#2F3F8B #8B2F6D #8B7B2F #2F8B4D
split-complementary
#2F3F8B #8B4D2F #6D8B2F
monochromatic
#101630 #202A5D #2F3F8B #3E54B9 #687ACC

Accessibility & contrast

On white

9.53
#2F3F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F3F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F8B
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F8B#FFFFFF#000000##FFFFFF
##2F3F8B1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4A8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3f8b;
/* rgb */ color: rgb(47, 63, 139);
/* oklch */ color: oklch(39.9% 0.127 270.6);
Tailwind
colors: {
  custom: {
    50: '#7273ad',
    500: '#2f3f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f8b;
$custom-light: #7273ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f8b",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 139
  },
  "hsl": {
    "h": 229.565,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39935,
    "c": 0.1274,
    "h": 270.6
  },
  "luminance": 0.06023
}

Semantic roles & 50–950 ramp

primary
#2F3F8B
secondary
#B3A563
accent
#C14FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F3F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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