#2F427C#2F427C

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

Color values

HEX#2F427C
RGBrgb(47, 66, 124)
HSLhsl(225, 45%, 34%)
HSVhsv(225, 62%, 49%)
CMYKcmyk(62.1%, 46.8%, 0%, 51.4%)
CIE-LABlab(29.30, 11.88, -35.32)
CIE-LCHlch(29.30, 37.26, 288.59°)
OKLaboklab(39.48% -0.0036 -0.1007)
OKLCHoklch(39.48% 0.101 267.9)
XYZxyz(6.7574, 5.9554, 19.8583)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F427C #7C692F
analogous
#2F687C #2F427C #422F7C
triadic
#2F427C #7C2F42 #427C2F
tetradic
#2F427C #7C2F68 #7C692F #2F7C42
square
#2F427C #7C2F68 #7C692F #2F7C42
split-complementary
#2F427C #7C422F #687C2F
monochromatic
#0D1323 #1E2A50 #2F427C #405AA8 #627AC3

Accessibility & contrast

On white

9.58
#2F427C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F427C
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F427C#FFFFFF#000000##FFFFFF
##2F427C1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27497E
Deuteranopia (green-blind)
#1C427B
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f427c;
/* rgb */ color: rgb(47, 66, 124);
/* oklch */ color: oklch(39.5% 0.101 267.9);
Tailwind
colors: {
  custom: {
    50: '#6f76a2',
    500: '#2f427c',
    950: '#000000',
  },
}
SCSS
$custom: #2f427c;
$custom-light: #6f76a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f427c",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 124
  },
  "hsl": {
    "h": 225.195,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39475,
    "c": 0.10078,
    "h": 267.9
  },
  "luminance": 0.05956
}

Semantic roles & 50–950 ramp

primary
#2F427C
secondary
#AA975C
accent
#B553D5
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F427C

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

Preview Lab → · Contrast checker → · Palette generator →

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