#2F3A85#2F3A85

#2F3A85 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.125 H 272.8°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2F3A85
RGBrgb(47, 58, 133)
HSLhsl(232, 48%, 35%)
HSVhsv(232, 65%, 52%)
CMYKcmyk(64.7%, 56.4%, 0%, 47.8%)
CIE-LABlab(27.64, 20.67, -43.61)
CIE-LCHlch(27.64, 48.26, 295.36°)
OKLaboklab(38.42% 0.0061 -0.1252)
OKLCHoklch(38.42% 0.125 272.8)
XYZxyz(6.9176, 5.3233, 22.8487)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A85 #857A2F
analogous
#2F6585 #2F3A85 #4F2F85
triadic
#2F3A85 #852F3A #3A852F
tetradic
#2F3A85 #852F65 #857A2F #2F854F
square
#2F3A85 #852F65 #857A2F #2F854F
split-complementary
#2F3A85 #854F2F #65852F
monochromatic
#0F132B #1F2658 #2F3A85 #3F4EB2 #6672C9

Accessibility & contrast

On white

10.17
#2F3A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F3A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A85
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A85#FFFFFF#000000##FFFFFF
##2F3A851.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034588
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3a85;
/* rgb */ color: rgb(47, 58, 133);
/* oklch */ color: oklch(38.4% 0.125 272.8);
Tailwind
colors: {
  custom: {
    50: '#7170a9',
    500: '#2f3a85',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a85;
$custom-light: #7170a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a85",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 133
  },
  "hsl": {
    "h": 232.326,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38416,
    "c": 0.12538,
    "h": 272.8
  },
  "luminance": 0.05324
}

Semantic roles & 50–950 ramp

primary
#2F3A85
secondary
#B0A660
accent
#C650D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3A85

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

Preview Lab → · Contrast checker → · Palette generator →

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