#1B245F#1B245F

#1B245F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.105 H 271.7°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#1B245F
RGBrgb(27, 36, 95)
HSLhsl(232, 56%, 24%)
HSVhsv(232, 72%, 37%)
CMYKcmyk(71.6%, 62.1%, 0%, 62.7%)
CIE-LABlab(17.09, 17.95, -36.40)
CIE-LCHlch(17.09, 40.58, 296.25°)
OKLaboklab(29.22% 0.0031 -0.1048)
OKLCHoklch(29.22% 0.105 271.7)
XYZxyz(3.1477, 2.3207, 11.1063)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B245F #5F561B
analogous
#1B465F #1B245F #341B5F
triadic
#1B245F #5F1B24 #245F1B
tetradic
#1B245F #5F1B46 #5F561B #1B5F34
square
#1B245F #5F1B46 #5F561B #1B5F34
split-complementary
#1B245F #5F341B #465F1B
monochromatic
#070918 #0D122F #1B245F #29368F #3648BE

Accessibility & contrast

On white

14.34
#1B245F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1B245F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B245F
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B245F#FFFFFF#000000##FFFFFF
##1B245F1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b245f;
/* rgb */ color: rgb(27, 36, 95);
/* oklch */ color: oklch(29.2% 0.105 271.7);
Tailwind
colors: {
  custom: {
    50: '#615e8d',
    500: '#1b245f',
    950: '#000000',
  },
}
SCSS
$custom: #1b245f;
$custom-light: #615e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b245f",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 95
  },
  "hsl": {
    "h": 232.059,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29223,
    "c": 0.10487,
    "h": 271.7
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#1B245F
secondary
#958A41
accent
#CB49DF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1B245F

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

Preview Lab → · Contrast checker → · Palette generator →

#1B245F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva