#2F248F#2F248F

#2F248F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.167 H 278.2°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2F248F
RGBrgb(47, 36, 143)
HSLhsl(246, 60%, 35%)
HSVhsv(246, 75%, 56%)
CMYKcmyk(67.1%, 74.8%, 0%, 43.9%)
CIE-LABlab(23.16, 38.34, -57.14)
CIE-LCHlch(23.16, 68.81, 303.86°)
OKLaboklab(35.42% 0.0239 -0.165)
OKLCHoklch(35.42% 0.167 278.2)
XYZxyz(6.7595, 3.8487, 26.3679)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F248F #848F24
analogous
#244F8F #2F248F #64248F
triadic
#2F248F #8F2F24 #248F2F
tetradic
#2F248F #8F244F #848F24 #248F64
square
#2F248F #8F244F #848F24 #248F64
split-complementary
#2F248F #8F6424 #4F8F24
monochromatic
#0F0B2D #1F185E #2F248F #3F30C0 #6558D5

Accessibility & contrast

On white

11.87
#2F248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F248F
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F248F#FFFFFF#000000##FFFFFF
##2F248F1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f248f;
/* rgb */ color: rgb(47, 36, 143);
/* oklch */ color: oklch(35.4% 0.167 278.2);
Tailwind
colors: {
  custom: {
    50: '#7561b1',
    500: '#2f248f',
    950: '#000000',
  },
}
SCSS
$custom: #2f248f;
$custom-light: #7561b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f248f",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 246.168,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35422,
    "c": 0.16671,
    "h": 278.2
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#2F248F
secondary
#AFB955
accent
#E345D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F248F

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

Preview Lab → · Contrast checker → · Palette generator →

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