#2F3A7E#2F3A7E

#2F3A7E is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.9% C 0.115 H 272.8°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#2F3A7E
RGBrgb(47, 58, 126)
HSLhsl(232, 46%, 34%)
HSVhsv(232, 63%, 49%)
CMYKcmyk(62.7%, 54%, 0%, 50.6%)
CIE-LABlab(27.12, 18.08, -40.07)
CIE-LCHlch(27.12, 43.96, 294.29°)
OKLaboklab(37.86% 0.0056 -0.1148)
OKLCHoklch(37.86% 0.115 272.8)
XYZxyz(6.4500, 5.1363, 20.3861)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A7E #7E732F
analogous
#2F627E #2F3A7E #4C2F7E
triadic
#2F3A7E #7E2F3A #3A7E2F
tetradic
#2F3A7E #7E2F62 #7E732F #2F7E4C
square
#2F3A7E #7E2F62 #7E732F #2F7E4C
split-complementary
#2F3A7E #7E4C2F #627E2F
monochromatic
#0E1125 #1E2551 #2F3A7E #404FAB #6370C5

Accessibility & contrast

On white

10.36
#2F3A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F3A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A7E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A7E#FFFFFF#000000##FFFFFF
##2F3A7E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124480
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3a7e;
/* rgb */ color: rgb(47, 58, 126);
/* oklch */ color: oklch(37.9% 0.115 272.8);
Tailwind
colors: {
  custom: {
    50: '#706fa4',
    500: '#2f3a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a7e;
$custom-light: #706fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a7e",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 126
  },
  "hsl": {
    "h": 231.646,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37863,
    "c": 0.11495,
    "h": 272.8
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#2F3A7E
secondary
#ACA15D
accent
#C352D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F3A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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