#2F3173#2F3173

#2F3173 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.1% C 0.111 H 277.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2F3173
RGBrgb(47, 49, 115)
HSLhsl(238, 42%, 32%)
HSVhsv(238, 59%, 45%)
CMYKcmyk(59.1%, 57.4%, 0%, 54.9%)
CIE-LABlab(23.80, 20.25, -38.47)
CIE-LCHlch(23.80, 43.47, 297.76°)
OKLaboklab(35.11% 0.0149 -0.1102)
OKLCHoklch(35.11% 0.111 277.7)
XYZxyz(5.3641, 4.0384, 16.7132)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3173 #73712F
analogous
#2F5373 #2F3173 #4F2F73
triadic
#2F3173 #732F31 #31732F
tetradic
#2F3173 #732F53 #73712F #2F734F
square
#2F3173 #732F53 #73712F #2F734F
split-complementary
#2F3173 #734F2F #53732F
monochromatic
#0B0C1C #1D1E48 #2F3173 #41449E #5F62BE

Accessibility & contrast

On white

11.62
#2F3173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F3173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3173
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3173#FFFFFF#000000##FFFFFF
##2F31731.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053B75
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#09404D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f3173;
/* rgb */ color: rgb(47, 49, 115);
/* oklch */ color: oklch(35.1% 0.111 277.7);
Tailwind
colors: {
  custom: {
    50: '#6e699c',
    500: '#2f3173',
    950: '#000000',
  },
}
SCSS
$custom: #2f3173;
$custom-light: #6e699c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3173",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 238.235,
    "s": 41.975,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35113,
    "c": 0.11119,
    "h": 277.7
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#2F3173
secondary
#A4A25A
accent
#CE56D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F3173

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

Preview Lab → · Contrast checker → · Palette generator →

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