#2F267F#2F267F

#2F267F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.143 H 280.2°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2F267F
RGBrgb(47, 38, 127)
HSLhsl(246, 54%, 32%)
HSVhsv(246, 70%, 50%)
CMYKcmyk(63%, 70.1%, 0%, 50.2%)
CIE-LABlab(22.03, 31.75, -48.98)
CIE-LCHlch(22.03, 58.37, 302.95°)
OKLaboklab(34.13% 0.0253 -0.1411)
OKLCHoklch(34.13% 0.143 280.2)
XYZxyz(5.6950, 3.5225, 20.4544)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F267F #767F26
analogous
#264A7F #2F267F #5B267F
triadic
#2F267F #7F2F26 #267F2F
tetradic
#2F267F #7F264A #767F26 #267F5B
square
#2F267F #7F264A #767F26 #267F5B
split-complementary
#2F267F #7F5B26 #4A7F26
monochromatic
#0C0A21 #1E1850 #2F267F #4034AE #6054CC

Accessibility & contrast

On white

12.32
#2F267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F267F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F267F#FFFFFF#000000##FFFFFF
##2F267F1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f267f;
/* rgb */ color: rgb(47, 38, 127);
/* oklch */ color: oklch(34.1% 0.143 280.2);
Tailwind
colors: {
  custom: {
    50: '#7261a5',
    500: '#2f267f',
    950: '#000000',
  },
}
SCSS
$custom: #2f267f;
$custom-light: #7261a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f267f",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 246.067,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34129,
    "c": 0.14339,
    "h": 280.2
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#2F267F
secondary
#A7B051
accent
#DD4ACE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F267F

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

Preview Lab → · Contrast checker → · Palette generator →

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