#274797#274797

#274797 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.2% C 0.137 H 264.7°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#274797
RGBrgb(39, 71, 151)
HSLhsl(223, 59%, 37%)
HSVhsv(223, 74%, 59%)
CMYKcmyk(74.2%, 53%, 0%, 40.8%)
CIE-LABlab(32.19, 17.38, -47.34)
CIE-LCHlch(32.19, 50.43, 290.16°)
OKLaboklab(42.16% -0.0126 -0.1362)
OKLCHoklch(42.16% 0.137 264.7)
XYZxyz(8.6739, 7.1712, 30.1992)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#274797 #977727
analogous
#277F97 #274797 #3F2797
triadic
#274797 #972747 #479727
tetradic
#274797 #97277F #977727 #27973F
square
#274797 #97277F #977727 #27973F
split-complementary
#274797 #973F27 #7F9727
monochromatic
#0E1936 #1A3066 #274797 #345EC8 #6283D6

Accessibility & contrast

On white

8.63
#274797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#274797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #274797
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##274797#FFFFFF#000000##FFFFFF
##2747971.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12519A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #274797;
/* rgb */ color: rgb(39, 71, 151);
/* oklch */ color: oklch(42.2% 0.137 264.7);
Tailwind
colors: {
  custom: {
    50: '#7179b6',
    500: '#274797',
    950: '#000000',
  },
}
SCSS
$custom: #274797;
$custom-light: #7179b6;
$custom-dark: #000000;
JSON
{
  "hex": "#274797",
  "rgb": {
    "r": 39,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 222.857,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42163,
    "c": 0.13675,
    "h": 264.7
  },
  "luminance": 0.07172
}

Semantic roles & 50–950 ramp

primary
#274797
secondary
#BCA15E
accent
#B546E2
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #274797

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

Preview Lab → · Contrast checker → · Palette generator →

#274797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva