#2F2498#2F2498

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

Color values

HEX#2F2498
RGBrgb(47, 36, 152)
HSLhsl(246, 62%, 37%)
HSVhsv(246, 76%, 60%)
CMYKcmyk(69.1%, 76.3%, 0%, 40.4%)
CIE-LABlab(24.10, 41.30, -61.15)
CIE-LCHlch(24.10, 73.79, 304.03°)
OKLaboklab(36.37% 0.0219 -0.1767)
OKLCHoklch(36.37% 0.178 277)
XYZxyz(7.4688, 4.1324, 30.1037)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2498 #8D9824
analogous
#245398 #2F2498 #692498
triadic
#2F2498 #982F24 #24982F
tetradic
#2F2498 #982453 #8D9824 #249869
square
#2F2498 #982453 #8D9824 #249869
split-complementary
#2F2498 #986924 #539824
monochromatic
#100D35 #201867 #2F2498 #3E30C9 #695ED9

Accessibility & contrast

On white

11.50
#2F2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2498
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2498#FFFFFF#000000##FFFFFF
##2F24981.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2498;
/* rgb */ color: rgb(47, 36, 152);
/* oklch */ color: oklch(36.4% 0.178 277.0);
Tailwind
colors: {
  custom: {
    50: '#7761b7',
    500: '#2f2498',
    950: '#000000',
  },
}
SCSS
$custom: #2f2498;
$custom-light: #7761b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2498",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 245.69,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36369,
    "c": 0.17803,
    "h": 277
  },
  "luminance": 0.04133
}

Semantic roles & 50–950 ramp

primary
#2F2498
secondary
#B4BE5A
accent
#E543D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2498

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

Preview Lab → · Contrast checker → · Palette generator →

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