#2F3C80#2F3C80

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

Color values

HEX#2F3C80
RGBrgb(47, 60, 128)
HSLhsl(230, 46%, 34%)
HSVhsv(230, 63%, 50%)
CMYKcmyk(63.3%, 53.1%, 0%, 49.8%)
CIE-LABlab(27.83, 17.45, -40.18)
CIE-LCHlch(27.83, 43.81, 293.48°)
OKLaboklab(38.44% 0.0036 -0.1151)
OKLCHoklch(38.44% 0.115 271.8)
XYZxyz(6.6831, 5.3940, 21.1069)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C80 #80732F
analogous
#2F6580 #2F3C80 #4B2F80
triadic
#2F3C80 #802F3C #3C802F
tetradic
#2F3C80 #802F65 #80732F #2F804B
square
#2F3C80 #802F65 #80732F #2F804B
split-complementary
#2F3C80 #804B2F #65802F
monochromatic
#0E1226 #1F2753 #2F3C80 #3F51AD #6373C6

Accessibility & contrast

On white

10.10
#2F3C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F3C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C80
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C80#FFFFFF#000000##FFFFFF
##2F3C801.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154582
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#004C58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3c80;
/* rgb */ color: rgb(47, 60, 128);
/* oklch */ color: oklch(38.4% 0.115 271.8);
Tailwind
colors: {
  custom: {
    50: '#7071a5',
    500: '#2f3c80',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c80;
$custom-light: #7071a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c80",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 128
  },
  "hsl": {
    "h": 230.37,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.11517,
    "h": 271.8
  },
  "luminance": 0.05395
}

Semantic roles & 50–950 ramp

primary
#2F3C80
secondary
#ADA05E
accent
#C152D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F3C80

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

Preview Lab → · Contrast checker → · Palette generator →

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