#274E8B#274E8B

#274E8B is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.111 H 259.1°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#274E8B
RGBrgb(39, 78, 139)
HSLhsl(217, 56%, 35%)
HSVhsv(217, 72%, 55%)
CMYKcmyk(71.9%, 43.9%, 0%, 45.5%)
CIE-LABlab(33.44, 8.00, -38.01)
CIE-LCHlch(33.44, 38.84, 281.88°)
OKLaboklab(42.86% -0.021 -0.1086)
OKLCHoklch(42.86% 0.111 259.1)
XYZxyz(8.2196, 7.7433, 25.4825)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#274E8B #8B6427
analogous
#27808B #274E8B #32278B
triadic
#274E8B #8B274E #4E8B27
tetradic
#274E8B #8B2780 #8B6427 #278B32
square
#274E8B #8B2780 #8B6427 #278B32
split-complementary
#274E8B #8B3227 #808B27
monochromatic
#0C182B #1A335B #274E8B #3469BB #5B89D1

Accessibility & contrast

On white

8.24
#274E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#274E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #274E8B
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##274E8B#FFFFFF#000000##FFFFFF
##274E8B1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548D
Deuteranopia (green-blind)
#204A8A
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #274e8b;
/* rgb */ color: rgb(39, 78, 139);
/* oklch */ color: oklch(42.9% 0.111 259.1);
Tailwind
colors: {
  custom: {
    50: '#6e7fad',
    500: '#274e8b',
    950: '#000000',
  },
}
SCSS
$custom: #274e8b;
$custom-light: #6e7fad;
$custom-dark: #000000;
JSON
{
  "hex": "#274e8b",
  "rgb": {
    "r": 39,
    "g": 78,
    "b": 139
  },
  "hsl": {
    "h": 216.6,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42861,
    "c": 0.11059,
    "h": 259.1
  },
  "luminance": 0.07744
}

Semantic roles & 50–950 ramp

primary
#274E8B
secondary
#B69158
accent
#A548DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #274E8B

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

Preview Lab → · Contrast checker → · Palette generator →

#274E8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva