#2F4183#2F4183

#2F4183 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.8% C 0.113 H 269.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2F4183
RGBrgb(47, 65, 131)
HSLhsl(227, 47%, 35%)
HSVhsv(227, 64%, 51%)
CMYKcmyk(64.1%, 50.4%, 0%, 48.6%)
CIE-LABlab(29.47, 15.15, -39.41)
CIE-LCHlch(29.47, 42.22, 291.03°)
OKLaboklab(39.76% -0.0014 -0.1128)
OKLCHoklch(39.76% 0.113 269.3)
XYZxyz(7.1579, 6.0230, 22.2537)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4183 #83712F
analogous
#2F6B83 #2F4183 #472F83
triadic
#2F4183 #832F41 #41832F
tetradic
#2F4183 #832F6B #83712F #2F8347
square
#2F4183 #832F6B #83712F #2F8347
split-complementary
#2F4183 #83472F #6B832F
monochromatic
#0F1429 #1F2B56 #2F4183 #3F57B0 #657AC8

Accessibility & contrast

On white

9.52
#2F4183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4183
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4183#FFFFFF#000000##FFFFFF
##2F41831.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4985
Deuteranopia (green-blind)
#0D4282
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4183;
/* rgb */ color: rgb(47, 65, 131);
/* oklch */ color: oklch(39.8% 0.113 269.3);
Tailwind
colors: {
  custom: {
    50: '#7075a7',
    500: '#2f4183',
    950: '#000000',
  },
}
SCSS
$custom: #2f4183;
$custom-light: #7075a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4183",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 131
  },
  "hsl": {
    "h": 227.143,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39755,
    "c": 0.11278,
    "h": 269.3
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4183

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

Preview Lab → · Contrast checker → · Palette generator →

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