#2F267E#2F267E

#2F267E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.142 H 280.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2F267E
RGBrgb(47, 38, 126)
HSLhsl(246, 54%, 32%)
HSVhsv(246, 70%, 49%)
CMYKcmyk(62.7%, 69.8%, 0%, 50.6%)
CIE-LABlab(21.93, 31.41, -48.50)
CIE-LCHlch(21.93, 57.78, 302.93°)
OKLaboklab(34.03% 0.0255 -0.1397)
OKLCHoklch(34.03% 0.142 280.3)
XYZxyz(5.6301, 3.4965, 20.1128)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F267E #757E26
analogous
#26497E #2F267E #5B267E
triadic
#2F267E #7E2F26 #267E2F
tetradic
#2F267E #7E2649 #757E26 #267E5B
square
#2F267E #7E2649 #757E26 #267E5B
split-complementary
#2F267E #7E5B26 #497E26
monochromatic
#0C0A20 #1D184F #2F267E #4134AD #5F53CB

Accessibility & contrast

On white

12.36
#2F267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F267E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F267E#FFFFFF#000000##FFFFFF
##2F267E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f267e;
/* rgb */ color: rgb(47, 38, 126);
/* oklch */ color: oklch(34.0% 0.142 280.3);
Tailwind
colors: {
  custom: {
    50: '#7161a4',
    500: '#2f267e',
    950: '#000000',
  },
}
SCSS
$custom: #2f267e;
$custom-light: #7161a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f267e",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 246.136,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34033,
    "c": 0.14204,
    "h": 280.3
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#2F267E
secondary
#A6B050
accent
#DD4BCE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F267E

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

Preview Lab → · Contrast checker → · Palette generator →

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