#2F427D#2F427D

#2F427D is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.5% C 0.102 H 268.1°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2F427D
RGBrgb(47, 66, 125)
HSLhsl(225, 45%, 34%)
HSVhsv(225, 62%, 49%)
CMYKcmyk(62.4%, 47.2%, 0%, 51%)
CIE-LABlab(29.36, 12.24, -35.84)
CIE-LCHlch(29.36, 37.87, 288.86°)
OKLaboklab(39.55% -0.0034 -0.1023)
OKLCHoklch(39.55% 0.102 268.1)
XYZxyz(6.8209, 5.9809, 20.1930)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F427D #7D6A2F
analogous
#2F697D #2F427D #432F7D
triadic
#2F427D #7D2F42 #427D2F
tetradic
#2F427D #7D2F69 #7D6A2F #2F7D43
square
#2F427D #7D2F69 #7D6A2F #2F7D43
split-complementary
#2F427D #7D432F #697D2F
monochromatic
#0E1324 #1E2B51 #2F427D #4059A9 #627AC4

Accessibility & contrast

On white

9.56
#2F427D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F427D
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F427D#FFFFFF#000000##FFFFFF
##2F427D1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26497F
Deuteranopia (green-blind)
#1A427C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f427d;
/* rgb */ color: rgb(47, 66, 125);
/* oklch */ color: oklch(39.5% 0.102 268.1);
Tailwind
colors: {
  custom: {
    50: '#6f76a3',
    500: '#2f427d',
    950: '#000000',
  },
}
SCSS
$custom: #2f427d;
$custom-light: #6f76a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f427d",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 125
  },
  "hsl": {
    "h": 225.385,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39545,
    "c": 0.10232,
    "h": 268.1
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#2F427D
secondary
#AB985D
accent
#B553D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F427D

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

Preview Lab → · Contrast checker → · Palette generator →

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