#2B247F#2B247F

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

Color values

HEX#2B247F
RGBrgb(43, 36, 127)
HSLhsl(245, 56%, 32%)
HSVhsv(245, 72%, 50%)
CMYKcmyk(66.1%, 71.7%, 0%, 50.2%)
CIE-LABlab(21.23, 32.39, -50.29)
CIE-LCHlch(21.23, 59.82, 302.79°)
OKLaboklab(33.48% 0.0213 -0.1451)
OKLCHoklch(33.48% 0.147 278.4)
XYZxyz(5.4567, 3.3072, 20.4254)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B247F #787F24
analogous
#244B7F #2B247F #58247F
triadic
#2B247F #7F2B24 #247F2B
tetradic
#2B247F #7F244B #787F24 #247F58
square
#2B247F #7F244B #787F24 #247F58
split-complementary
#2B247F #7F5824 #4B7F24
monochromatic
#0B0920 #1B164F #2B247F #3B32AF #5A50CD

Accessibility & contrast

On white

12.64
#2B247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B247F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B247F#FFFFFF#000000##FFFFFF
##2B247F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b247f;
/* rgb */ color: rgb(43, 36, 127);
/* oklch */ color: oklch(33.5% 0.147 278.4);
Tailwind
colors: {
  custom: {
    50: '#7060a5',
    500: '#2b247f',
    950: '#000000',
  },
}
SCSS
$custom: #2b247f;
$custom-light: #7060a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b247f",
  "rgb": {
    "r": 43,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 244.615,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33475,
    "c": 0.14666,
    "h": 278.4
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#2B247F
secondary
#AAB14E
accent
#DF49D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B247F

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

Preview Lab → · Contrast checker → · Palette generator →

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