#2F229B#2F229B

#2F229B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.184 H 277.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2F229B
RGBrgb(47, 34, 155)
HSLhsl(246, 64%, 37%)
HSVhsv(246, 78%, 61%)
CMYKcmyk(69.7%, 78.1%, 0%, 39.2%)
CIE-LABlab(24.05, 43.35, -63.08)
CIE-LCHlch(24.05, 76.54, 304.50°)
OKLaboklab(36.42% 0.0222 -0.1823)
OKLCHoklch(36.42% 0.184 277)
XYZxyz(7.6588, 4.1143, 31.3945)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F229B #8E9B22
analogous
#22529B #2F229B #6B229B
triadic
#2F229B #9B2F22 #229B2F
tetradic
#2F229B #9B2252 #8E9B22 #229B6B
square
#2F229B #9B2252 #8E9B22 #229B6B
split-complementary
#2F229B #9B6B22 #529B22
monochromatic
#110C37 #201769 #2F229B #3E2DCD #6A5CDB

Accessibility & contrast

On white

11.52
#2F229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F229B
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F229B#FFFFFF#000000##FFFFFF
##2F229B1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f229b;
/* rgb */ color: rgb(47, 34, 155);
/* oklch */ color: oklch(36.4% 0.184 277.0);
Tailwind
colors: {
  custom: {
    50: '#7860ba',
    500: '#2f229b',
    950: '#000000',
  },
}
SCSS
$custom: #2f229b;
$custom-light: #7860ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f229b",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 246.446,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36423,
    "c": 0.18365,
    "h": 277
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#2F229B
secondary
#B5C059
accent
#E741D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F229B

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

Preview Lab → · Contrast checker → · Palette generator →

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