#2F3C82#2F3C82

#2F3C82 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.6% C 0.118 H 271.8°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2F3C82
RGBrgb(47, 60, 130)
HSLhsl(231, 47%, 35%)
HSVhsv(231, 64%, 51%)
CMYKcmyk(63.8%, 53.8%, 0%, 49%)
CIE-LABlab(27.97, 18.19, -41.20)
CIE-LCHlch(27.97, 45.04, 293.83°)
OKLaboklab(38.6% 0.0038 -0.1181)
OKLCHoklch(38.6% 0.118 271.8)
XYZxyz(6.8161, 5.4472, 21.8070)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C82 #82752F
analogous
#2F6682 #2F3C82 #4B2F82
triadic
#2F3C82 #822F3C #3C822F
tetradic
#2F3C82 #822F66 #82752F #2F824B
square
#2F3C82 #822F66 #82752F #2F824B
split-complementary
#2F3C82 #824B2F #66822F
monochromatic
#0E1328 #1F2755 #2F3C82 #3F51AF #6474C7

Accessibility & contrast

On white

10.05
#2F3C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F3C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C82
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C82#FFFFFF#000000##FFFFFF
##2F3C821.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124684
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3c82;
/* rgb */ color: rgb(47, 60, 130);
/* oklch */ color: oklch(38.6% 0.118 271.8);
Tailwind
colors: {
  custom: {
    50: '#7071a7',
    500: '#2f3c82',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c82;
$custom-light: #7071a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c82",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 130
  },
  "hsl": {
    "h": 230.602,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38598,
    "c": 0.11816,
    "h": 271.8
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#2F3C82
secondary
#AEA25F
accent
#C251D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F3C82

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

Preview Lab → · Contrast checker → · Palette generator →

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