#2F367F#2F367F

#2F367F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.122 H 274.7°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2F367F
RGBrgb(47, 54, 127)
HSLhsl(235, 46%, 34%)
HSVhsv(235, 63%, 50%)
CMYKcmyk(63%, 57.5%, 0%, 50.2%)
CIE-LABlab(26.08, 21.19, -42.38)
CIE-LCHlch(26.08, 47.38, 296.56°)
OKLaboklab(37.11% 0.0099 -0.1216)
OKLCHoklch(37.11% 0.122 274.7)
XYZxyz(6.3210, 4.7745, 20.6630)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F367F #7F782F
analogous
#2F5E7F #2F367F #502F7F
triadic
#2F367F #7F2F36 #367F2F
tetradic
#2F367F #7F2F5E #7F782F #2F7F50
square
#2F367F #7F2F5E #7F782F #2F7F50
split-complementary
#2F367F #7F502F #5E7F2F
monochromatic
#0E1026 #1E2352 #2F367F #4049AC #636CC5

Accessibility & contrast

On white

10.74
#2F367F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F367F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F367F
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F367F#FFFFFF#000000##FFFFFF
##2F367F1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004755
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f367f;
/* rgb */ color: rgb(47, 54, 127);
/* oklch */ color: oklch(37.1% 0.122 274.7);
Tailwind
colors: {
  custom: {
    50: '#706ca5',
    500: '#2f367f',
    950: '#000000',
  },
}
SCSS
$custom: #2f367f;
$custom-light: #706ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f367f",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 127
  },
  "hsl": {
    "h": 234.75,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37108,
    "c": 0.12203,
    "h": 274.7
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#2F367F
secondary
#ACA55E
accent
#CA52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F367F

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

Preview Lab → · Contrast checker → · Palette generator →

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