#20274B#20274B

#20274B is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.6% C 0.066 H 273.2°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#20274B
RGBrgb(32, 39, 75)
HSLhsl(230, 40%, 21%)
HSVhsv(230, 57%, 29%)
CMYKcmyk(57.3%, 48%, 0%, 70.6%)
CIE-LABlab(16.82, 8.99, -23.36)
CIE-LCHlch(16.82, 25.03, 291.05°)
OKLaboklab(28.63% 0.0037 -0.0663)
OKLCHoklch(28.63% 0.066 273.2)
XYZxyz(2.5908, 2.2659, 6.9561)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20274B #4B4420
analogous
#203C4B #20274B #2E204B
triadic
#20274B #4B2027 #274B20
tetradic
#20274B #4B203C #4B4420 #204B2E
square
#20274B #4B203C #4B4420 #204B2E
split-complementary
#20274B #4B2E20 #3C4B20
monochromatic
#090B15 #0E1120 #20274B #323D76 #4554A1

Accessibility & contrast

On white

14.45
#20274B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#20274B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20274B
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20274B#FFFFFF#000000##FFFFFF
##20274B1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182B4C
Deuteranopia (green-blind)
#13284A
Tritanopia (blue-blind)
#0D2F35
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20274b;
/* rgb */ color: rgb(32, 39, 75);
/* oklch */ color: oklch(28.6% 0.066 273.2);
Tailwind
colors: {
  custom: {
    50: '#5f607d',
    500: '#20274b',
    950: '#000000',
  },
}
SCSS
$custom: #20274b;
$custom-light: #5f607d;
$custom-dark: #000000;
JSON
{
  "hex": "#20274b",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 75
  },
  "hsl": {
    "h": 230.233,
    "s": 40.187,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28631,
    "c": 0.06641,
    "h": 273.2
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#20274B
secondary
#7F7647
accent
#BC58D0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#050509
muted
#79797B

Preview Lab

Preview with #20274B

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

Preview Lab → · Contrast checker → · Palette generator →

#20274B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva