#2F3C7D#2F3C7D

#2F3C7D is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.2% C 0.111 H 271.7°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2F3C7D
RGBrgb(47, 60, 125)
HSLhsl(230, 45%, 34%)
HSVhsv(230, 62%, 49%)
CMYKcmyk(62.4%, 52%, 0%, 51%)
CIE-LABlab(27.62, 16.34, -38.64)
CIE-LCHlch(27.62, 41.96, 292.93°)
OKLaboklab(38.22% 0.0033 -0.1106)
OKLCHoklch(38.22% 0.111 271.7)
XYZxyz(6.4886, 5.3162, 20.0823)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C7D #7D702F
analogous
#2F637D #2F3C7D #492F7D
triadic
#2F3C7D #7D2F3C #3C7D2F
tetradic
#2F3C7D #7D2F63 #7D702F #2F7D49
square
#2F3C7D #7D2F63 #7D702F #2F7D49
split-complementary
#2F3C7D #7D492F #637D2F
monochromatic
#0E1124 #1E2751 #2F3C7D #4051A9 #6273C4

Accessibility & contrast

On white

10.18
#2F3C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F3C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C7D
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C7D#FFFFFF#000000##FFFFFF
##2F3C7D1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19457F
Deuteranopia (green-blind)
#083E7C
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3c7d;
/* rgb */ color: rgb(47, 60, 125);
/* oklch */ color: oklch(38.2% 0.111 271.7);
Tailwind
colors: {
  custom: {
    50: '#7071a3',
    500: '#2f3c7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c7d;
$custom-light: #7071a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c7d",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 125
  },
  "hsl": {
    "h": 230,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.11063,
    "h": 271.7
  },
  "luminance": 0.05317
}

Semantic roles & 50–950 ramp

primary
#2F3C7D
secondary
#AB9E5D
accent
#BF53D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F3C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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