#2F4181#2F4181

#2F4181 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.6% C 0.110 H 269.1°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2F4181
RGBrgb(47, 65, 129)
HSLhsl(227, 47%, 35%)
HSVhsv(227, 64%, 51%)
CMYKcmyk(63.6%, 49.6%, 0%, 49.4%)
CIE-LABlab(29.33, 14.41, -38.38)
CIE-LCHlch(29.33, 41.00, 290.58°)
OKLaboklab(39.61% -0.0017 -0.1097)
OKLCHoklch(39.61% 0.11 269.1)
XYZxyz(7.0237, 5.9693, 21.5467)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4181 #816F2F
analogous
#2F6A81 #2F4181 #462F81
triadic
#2F4181 #812F41 #41812F
tetradic
#2F4181 #812F6A #816F2F #2F8146
square
#2F4181 #812F6A #816F2F #2F8146
split-complementary
#2F4181 #81462F #6A812F
monochromatic
#0E1427 #1F2A54 #2F4181 #3F58AE #647AC6

Accessibility & contrast

On white

9.57
#2F4181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4181
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4181#FFFFFF#000000##FFFFFF
##2F41811.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214983
Deuteranopia (green-blind)
#124280
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4181;
/* rgb */ color: rgb(47, 65, 129);
/* oklch */ color: oklch(39.6% 0.110 269.1);
Tailwind
colors: {
  custom: {
    50: '#7075a6',
    500: '#2f4181',
    950: '#000000',
  },
}
SCSS
$custom: #2f4181;
$custom-light: #7075a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4181",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 226.829,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39608,
    "c": 0.10976,
    "h": 269.1
  },
  "luminance": 0.0597
}

Semantic roles & 50–950 ramp

primary
#2F4181
secondary
#AD9C5E
accent
#B952D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F4181

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

Preview Lab → · Contrast checker → · Palette generator →

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