#2F2598#2F2598

#2F2598 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.177 H 276.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2F2598
RGBrgb(47, 37, 152)
HSLhsl(245, 61%, 37%)
HSVhsv(245, 76%, 60%)
CMYKcmyk(69.1%, 75.7%, 0%, 40.4%)
CIE-LABlab(24.30, 40.74, -60.82)
CIE-LCHlch(24.30, 73.20, 303.81°)
OKLaboklab(36.51% 0.0213 -0.1757)
OKLCHoklch(36.51% 0.177 276.9)
XYZxyz(7.4995, 4.1938, 30.1139)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2598 #8E9825
analogous
#255598 #2F2598 #682598
triadic
#2F2598 #982F25 #25982F
tetradic
#2F2598 #982555 #8E9825 #259868
square
#2F2598 #982555 #8E9825 #259868
split-complementary
#2F2598 #986825 #559825
monochromatic
#110D36 #201967 #2F2598 #3E31C9 #6A5FD8

Accessibility & contrast

On white

11.42
#2F2598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F2598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2598
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2598#FFFFFF#000000##FFFFFF
##2F25981.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2598;
/* rgb */ color: rgb(47, 37, 152);
/* oklch */ color: oklch(36.5% 0.177 276.9);
Tailwind
colors: {
  custom: {
    50: '#7762b7',
    500: '#2f2598',
    950: '#000000',
  },
}
SCSS
$custom: #2f2598;
$custom-light: #7762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2598",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 245.217,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36508,
    "c": 0.17702,
    "h": 276.9
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#2F2598
secondary
#B5BD5C
accent
#E444D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2598

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

Preview Lab → · Contrast checker → · Palette generator →

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