#2F227F#2F227F

#2F227F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.148 H 281.1°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2F227F
RGBrgb(47, 34, 127)
HSLhsl(248, 58%, 32%)
HSVhsv(248, 73%, 50%)
CMYKcmyk(63%, 73.2%, 0%, 50.2%)
CIE-LABlab(21.13, 34.20, -50.45)
CIE-LCHlch(21.13, 60.95, 304.14°)
OKLaboklab(33.49% 0.0287 -0.1454)
OKLCHoklch(33.49% 0.148 281.1)
XYZxyz(5.5739, 3.2803, 20.4140)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F227F #727F22
analogous
#22447F #2F227F #5E227F
triadic
#2F227F #7F2F22 #227F2F
tetradic
#2F227F #7F2244 #727F22 #227F5E
square
#2F227F #7F2244 #727F22 #227F5E
split-complementary
#2F227F #7F5E22 #447F22
monochromatic
#0B081E #1D154F #2F227F #412FAF #5F4CCF

Accessibility & contrast

On white

12.68
#2F227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F227F
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F227F#FFFFFF#000000##FFFFFF
##2F227F1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f227f;
/* rgb */ color: rgb(47, 34, 127);
/* oklch */ color: oklch(33.5% 0.148 281.1);
Tailwind
colors: {
  custom: {
    50: '#725fa5',
    500: '#2f227f',
    950: '#000000',
  },
}
SCSS
$custom: #2f227f;
$custom-light: #725fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f227f",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 248.387,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33489,
    "c": 0.14822,
    "h": 281.1
  },
  "luminance": 0.03281
}

Semantic roles & 50–950 ramp

primary
#2F227F
secondary
#A3B24B
accent
#E147CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F227F

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

Preview Lab → · Contrast checker → · Palette generator →

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