#2F4182#2F4182

#2F4182 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.7% C 0.111 H 269.2°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2F4182
RGBrgb(47, 65, 130)
HSLhsl(227, 47%, 35%)
HSVhsv(227, 64%, 51%)
CMYKcmyk(63.8%, 50%, 0%, 49%)
CIE-LABlab(29.40, 14.78, -38.90)
CIE-LCHlch(29.40, 41.61, 290.81°)
OKLaboklab(39.68% -0.0016 -0.1113)
OKLCHoklch(39.68% 0.111 269.2)
XYZxyz(7.0905, 5.9960, 21.8985)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4182 #82702F
analogous
#2F6B82 #2F4182 #472F82
triadic
#2F4182 #822F41 #41822F
tetradic
#2F4182 #822F6B #82702F #2F8247
square
#2F4182 #822F6B #82702F #2F8247
split-complementary
#2F4182 #82472F #6B822F
monochromatic
#0E1428 #1F2B55 #2F4182 #3F57AF #647AC7

Accessibility & contrast

On white

9.55
#2F4182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4182
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4182#FFFFFF#000000##FFFFFF
##2F41821.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204984
Deuteranopia (green-blind)
#104281
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4182;
/* rgb */ color: rgb(47, 65, 130);
/* oklch */ color: oklch(39.7% 0.111 269.2);
Tailwind
colors: {
  custom: {
    50: '#7075a7',
    500: '#2f4182',
    950: '#000000',
  },
}
SCSS
$custom: #2f4182;
$custom-light: #7075a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4182",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 130
  },
  "hsl": {
    "h": 226.988,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39681,
    "c": 0.11127,
    "h": 269.2
  },
  "luminance": 0.05997
}

Semantic roles & 50–950 ramp

primary
#2F4182
secondary
#AE9D5F
accent
#BA51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F4182

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

Preview Lab → · Contrast checker → · Palette generator →

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