#1B258F#1B258F

#1B258F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.171 H 269.6°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#1B258F
RGBrgb(27, 37, 143)
HSLhsl(235, 68%, 33%)
HSVhsv(235, 81%, 56%)
CMYKcmyk(81.1%, 74.1%, 0%, 43.9%)
CIE-LABlab(22.08, 35.70, -58.96)
CIE-LCHlch(22.08, 68.93, 301.19°)
OKLaboklab(34.31% -0.0013 -0.1708)
OKLCHoklch(34.31% 0.171 269.6)
XYZxyz(6.0698, 3.5386, 26.3444)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B258F #8F851B
analogous
#1B5F8F #1B258F #4B1B8F
triadic
#1B258F #8F1B25 #258F1B
tetradic
#1B258F #8F1B5F #8F851B #1B8F4B
square
#1B258F #8F1B5F #8F851B #1B8F4B
split-complementary
#1B258F #8F4B1B #5F8F1B
monochromatic
#080A28 #11185C #1B258F #2532C2 #4855DC

Accessibility & contrast

On white

12.30
#1B258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B258F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B258F#FFFFFF#000000##FFFFFF
##1B258F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b258f;
/* rgb */ color: rgb(27, 37, 143);
/* oklch */ color: oklch(34.3% 0.171 269.6);
Tailwind
colors: {
  custom: {
    50: '#6e60b1',
    500: '#1b258f',
    950: '#000000',
  },
}
SCSS
$custom: #1b258f;
$custom-light: #6e60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b258f",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 234.828,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3431,
    "c": 0.17081,
    "h": 269.6
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#1B258F
secondary
#BEB448
accent
#DC3DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B258F

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

Preview Lab → · Contrast checker → · Palette generator →

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