#2F249C#2F249C

#2F249C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.183 H 276.6°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2F249C
RGBrgb(47, 36, 156)
HSLhsl(246, 63%, 38%)
HSVhsv(246, 77%, 61%)
CMYKcmyk(69.9%, 76.9%, 0%, 38.8%)
CIE-LABlab(24.53, 42.60, -62.89)
CIE-LCHlch(24.53, 75.96, 304.11°)
OKLaboklab(36.8% 0.0209 -0.1818)
OKLCHoklch(36.8% 0.183 276.6)
XYZxyz(7.8020, 4.2657, 31.8582)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F249C #919C24
analogous
#24559C #2F249C #6B249C
triadic
#2F249C #9C2F24 #249C2F
tetradic
#2F249C #9C2455 #919C24 #249C6B
square
#2F249C #9C2455 #919C24 #249C6B
split-complementary
#2F249C #9C6B24 #559C24
monochromatic
#110D39 #20196A #2F249C #3E2FCE #6B60DA

Accessibility & contrast

On white

11.33
#2F249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F249C
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F249C#FFFFFF#000000##FFFFFF
##2F249C1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f249c;
/* rgb */ color: rgb(47, 36, 156);
/* oklch */ color: oklch(36.8% 0.183 276.6);
Tailwind
colors: {
  custom: {
    50: '#7861ba',
    500: '#2f249c',
    950: '#000000',
  },
}
SCSS
$custom: #2f249c;
$custom-light: #7861ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f249c",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 245.5,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36796,
    "c": 0.18297,
    "h": 276.6
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#2F249C
secondary
#B6BF5C
accent
#E642D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F249C

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

Preview Lab → · Contrast checker → · Palette generator →

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