#2F367E#2F367E

#2F367E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.121 H 274.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2F367E
RGBrgb(47, 54, 126)
HSLhsl(235, 46%, 34%)
HSVhsv(235, 63%, 49%)
CMYKcmyk(62.7%, 57.1%, 0%, 50.6%)
CIE-LABlab(26.01, 20.82, -41.87)
CIE-LCHlch(26.01, 46.76, 296.44°)
OKLaboklab(37.03% 0.0099 -0.1201)
OKLCHoklch(37.03% 0.121 274.7)
XYZxyz(6.2561, 4.7485, 20.3215)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F367E #7E772F
analogous
#2F5E7E #2F367E #502F7E
triadic
#2F367E #7E2F36 #367E2F
tetradic
#2F367E #7E2F5E #7E772F #2F7E50
square
#2F367E #7E2F5E #7E772F #2F7E50
split-complementary
#2F367E #7E502F #5E7E2F
monochromatic
#0E1025 #1E2351 #2F367E #4049AB #636BC5

Accessibility & contrast

On white

10.77
#2F367E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F367E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F367E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F367E#FFFFFF#000000##FFFFFF
##2F367E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014180
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f367e;
/* rgb */ color: rgb(47, 54, 126);
/* oklch */ color: oklch(37.0% 0.121 274.7);
Tailwind
colors: {
  custom: {
    50: '#706ca4',
    500: '#2f367e',
    950: '#000000',
  },
}
SCSS
$custom: #2f367e;
$custom-light: #706ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f367e",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 126
  },
  "hsl": {
    "h": 234.684,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37027,
    "c": 0.12055,
    "h": 274.7
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#2F367E
secondary
#ACA55D
accent
#CA52D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F367E

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

Preview Lab → · Contrast checker → · Palette generator →

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