#2730B1#2730B1

#2730B1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.199 H 270.5°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2730B1
RGBrgb(39, 48, 177)
HSLhsl(236, 64%, 42%)
HSVhsv(236, 78%, 69%)
CMYKcmyk(78%, 72.9%, 0%, 30.6%)
CIE-LABlab(28.69, 42.04, -68.73)
CIE-LCHlch(28.69, 80.57, 301.45°)
OKLaboklab(40.28% 0.0016 -0.199)
OKLCHoklch(40.28% 0.199 270.5)
XYZxyz(9.8268, 5.7185, 42.1723)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2730B1 #B1A827
analogous
#2775B1 #2730B1 #6327B1
triadic
#2730B1 #B12730 #30B127
tetradic
#2730B1 #B12775 #B1A827 #27B163
square
#2730B1 #B12775 #B1A827 #27B163
split-complementary
#2730B1 #B16327 #75B127
monochromatic
#11154D #1C227F #2730B1 #404AD5 #727AE0

Accessibility & contrast

On white

9.79
#2730B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2730B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2730B1
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2730B1#FFFFFF#000000##FFFFFF
##2730B11.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2730b1;
/* rgb */ color: rgb(39, 48, 177);
/* oklch */ color: oklch(40.3% 0.199 270.5);
Tailwind
colors: {
  custom: {
    50: '#7969ca',
    500: '#2730b1',
    950: '#000000',
  },
}
SCSS
$custom: #2730b1;
$custom-light: #7969ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2730b1",
  "rgb": {
    "r": 39,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 236.087,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40278,
    "c": 0.19905,
    "h": 270.5
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#2730B1
secondary
#C7C16D
accent
#DC41E7
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2730B1

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

Preview Lab → · Contrast checker → · Palette generator →

#2730B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva