#2F3C94#2F3C94

#2F3C94 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.144 H 271.8°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2F3C94
RGBrgb(47, 60, 148)
HSLhsl(232, 52%, 38%)
HSVhsv(232, 68%, 58%)
CMYKcmyk(68.2%, 59.5%, 0%, 42%)
CIE-LABlab(29.35, 24.86, -50.11)
CIE-LCHlch(29.35, 55.94, 296.39°)
OKLaboklab(40.06% 0.0046 -0.1443)
OKLCHoklch(40.06% 0.144 271.8)
XYZxyz(8.1316, 5.9734, 28.7357)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C94 #94872F
analogous
#2F6E94 #2F3C94 #542F94
triadic
#2F3C94 #942F3C #3C942F
tetradic
#2F3C94 #942F6E #94872F #2F9454
square
#2F3C94 #942F6E #94872F #2F9454
split-complementary
#2F3C94 #94542F #6E942F
monochromatic
#111637 #202966 #2F3C94 #3E4FC2 #6D7AD1

Accessibility & contrast

On white

9.57
#2F3C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F3C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C94
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C94#FFFFFF#000000##FFFFFF
##2F3C941.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3c94;
/* rgb */ color: rgb(47, 60, 148);
/* oklch */ color: oklch(40.1% 0.144 271.8);
Tailwind
colors: {
  custom: {
    50: '#7471b4',
    500: '#2f3c94',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c94;
$custom-light: #7471b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c94",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 148
  },
  "hsl": {
    "h": 232.277,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40061,
    "c": 0.14437,
    "h": 271.8
  },
  "luminance": 0.05974
}

Semantic roles & 50–950 ramp

primary
#2F3C94
secondary
#B8AD67
accent
#C94DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3C94

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

Preview Lab → · Contrast checker → · Palette generator →

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