#2F248B#2F248B

#2F248B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.162 H 278.8°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2F248B
RGBrgb(47, 36, 139)
HSLhsl(246, 59%, 34%)
HSVhsv(246, 74%, 55%)
CMYKcmyk(66.2%, 74.1%, 0%, 45.5%)
CIE-LABlab(22.76, 37.01, -55.32)
CIE-LCHlch(22.76, 66.56, 303.79°)
OKLaboklab(35.01% 0.0247 -0.1597)
OKLCHoklch(35.01% 0.162 278.8)
XYZxyz(6.4619, 3.7296, 24.8005)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F248B #808B24
analogous
#244D8B #2F248B #63248B
triadic
#2F248B #8B2F24 #248B2F
tetradic
#2F248B #8B244D #808B24 #248B63
square
#2F248B #8B244D #808B24 #248B63
split-complementary
#2F248B #8B6324 #4D8B24
monochromatic
#0E0B2A #1F175A #2F248B #3F31BC #6356D3

Accessibility & contrast

On white

12.03
#2F248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F248B
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F248B#FFFFFF#000000##FFFFFF
##2F248B1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f248b;
/* rgb */ color: rgb(47, 36, 139);
/* oklch */ color: oklch(35.0% 0.162 278.8);
Tailwind
colors: {
  custom: {
    50: '#7460ae',
    500: '#2f248b',
    950: '#000000',
  },
}
SCSS
$custom: #2f248b;
$custom-light: #7460ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f248b",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 246.408,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35009,
    "c": 0.16158,
    "h": 278.8
  },
  "luminance": 0.0373
}

Semantic roles & 50–950 ramp

primary
#2F248B
secondary
#ADB753
accent
#E246D1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F248B

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

Preview Lab → · Contrast checker → · Palette generator →

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