#1B248E#1B248E

#1B248E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.171 H 269.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1B248E
RGBrgb(27, 36, 142)
HSLhsl(235, 68%, 33%)
HSVhsv(235, 81%, 56%)
CMYKcmyk(81%, 74.6%, 0%, 44.3%)
CIE-LABlab(21.75, 35.96, -58.89)
CIE-LCHlch(21.75, 69.00, 301.41°)
OKLaboklab(34.04% -0.0008 -0.1706)
OKLCHoklch(34.04% 0.171 269.7)
XYZxyz(5.9637, 3.4471, 25.9370)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B248E #8E851B
analogous
#1B5D8E #1B248E #4B1B8E
triadic
#1B248E #8E1B24 #248E1B
tetradic
#1B248E #8E1B5D #8E851B #1B8E4B
square
#1B248E #8E1B5D #8E851B #1B8E4B
split-complementary
#1B248E #8E4B1B #5D8E1B
monochromatic
#070A27 #11175B #1B248E #2531C1 #4753DC

Accessibility & contrast

On white

12.43
#1B248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B248E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B248E#FFFFFF#000000##FFFFFF
##1B248E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b248e;
/* rgb */ color: rgb(27, 36, 142);
/* oklch */ color: oklch(34.0% 0.171 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e60b0',
    500: '#1b248e',
    950: '#000000',
  },
}
SCSS
$custom: #1b248e;
$custom-light: #6e60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b248e",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 235.304,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3404,
    "c": 0.17058,
    "h": 269.7
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#1B248E
secondary
#BEB447
accent
#DD3DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B248E

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

Preview Lab → · Contrast checker → · Palette generator →

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