#1B248F#1B248F

#1B248F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.172 H 269.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1B248F
RGBrgb(27, 36, 143)
HSLhsl(235, 68%, 33%)
HSVhsv(235, 81%, 56%)
CMYKcmyk(81.1%, 74.8%, 0%, 43.9%)
CIE-LABlab(21.86, 36.32, -59.33)
CIE-LCHlch(21.86, 69.56, 301.47°)
OKLaboklab(34.15% -0.0009 -0.1719)
OKLCHoklch(34.15% 0.172 269.7)
XYZxyz(6.0391, 3.4772, 26.3342)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B248F #8F861B
analogous
#1B5E8F #1B248F #4C1B8F
triadic
#1B248F #8F1B24 #248F1B
tetradic
#1B248F #8F1B5E #8F861B #1B8F4C
square
#1B248F #8F1B5E #8F861B #1B8F4C
split-complementary
#1B248F #8F4C1B #5E8F1B
monochromatic
#080A28 #11175C #1B248F #2531C2 #4853DC

Accessibility & contrast

On white

12.38
#1B248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B248F
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B248F#FFFFFF#000000##FFFFFF
##1B248F1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b248f;
/* rgb */ color: rgb(27, 36, 143);
/* oklch */ color: oklch(34.2% 0.172 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e60b1',
    500: '#1b248f',
    950: '#000000',
  },
}
SCSS
$custom: #1b248f;
$custom-light: #6e60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b248f",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 235.345,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34151,
    "c": 0.17186,
    "h": 269.7
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#1B248F
secondary
#BEB548
accent
#DE3DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1B248F

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

Preview Lab → · Contrast checker → · Palette generator →

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